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:
@@ -13,7 +13,7 @@ class ArticleController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
clogNav('consulte les articles');
|
||||
return view('admin.article.index',['activity' => \App\ComplementaryActivity::all()]);
|
||||
}
|
||||
|
||||
@@ -92,6 +92,7 @@ class ArticleController extends Controller
|
||||
$a->public_header_picture = $request->public_header_picture;
|
||||
|
||||
$a->save();
|
||||
clog('edit','success','a ajouté un article');
|
||||
return redirect('/admin/article')->with('success','Article modifié avec succès');
|
||||
}
|
||||
|
||||
@@ -127,7 +128,7 @@ class ArticleController extends Controller
|
||||
$p->pictureable_type = "App\ComplementaryActivity";
|
||||
|
||||
$p->save();
|
||||
|
||||
clog('add','success','a ajouté une photo avec succès');
|
||||
return redirect('/admin/article/activity/picture/'.$id)->with('success','Photo ajoutéé avec succès');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user