mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
3.2.1
This commit is contained in:
@@ -15,6 +15,7 @@ class ItemCategoryController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
clogNav('consulte la gestion des catégories d\'inventaire');
|
||||
return view('admin.itemcategory.index',['categories' => ItemCategory::all()]);
|
||||
}
|
||||
|
||||
@@ -58,7 +59,7 @@ class ItemCategoryController extends Controller
|
||||
}
|
||||
|
||||
$c->save();
|
||||
|
||||
clog('add','success','a ajouté une catégorie a l\'inventaire',null,'App\ItemCategory',$c->id);
|
||||
return redirect('/admin/inventory/management/category/')->with('success','Catégorie ajouté avec succès');
|
||||
}
|
||||
|
||||
@@ -115,7 +116,7 @@ class ItemCategoryController extends Controller
|
||||
}
|
||||
|
||||
$c->save();
|
||||
|
||||
clog('edit','success','a modifié une catégorie de l\'inventaire',null,'App\ItemCategory',$c->id);
|
||||
return redirect('/admin/inventory/management/category/')->with('success','Catégorie modifié avec succès');
|
||||
}
|
||||
|
||||
@@ -130,5 +131,6 @@ class ItemCategoryController extends Controller
|
||||
$c = ItemCategory::find($id);
|
||||
|
||||
$c->delete();
|
||||
clog('delete','success','a supprimé une catégorie de l\'inventaire',null,'App\ItemCategory',$c->id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user