Kaydet (Commit) 0d3880e5 authored tarafından mertcelen's avatar mertcelen

Module remove changed to name. I'll consider adding security later.

üst 0ff10044
......@@ -139,8 +139,8 @@ Artisan::command('module:add {module_name}',function($module_name){
})->describe("New module add");
Artisan::command('module:remove {module_id}',function($module_id){
$module = Module::find($module_id)->first();
Artisan::command('module:remove {module_name}',function($module_name){
$module = Module::where('name',$module_name)->first();
if(!$module){
return $this->error("Modul bulunamadi!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment