mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Deployement 117
This commit is contained in:
@@ -17,6 +17,28 @@ class ConfigController extends Controller
|
||||
return view ('admin.configs.general',['configs' => Config::all()]);
|
||||
}
|
||||
|
||||
public function customisation()
|
||||
{
|
||||
return view ('admin.configs.perso',['configs' => Config::all()]);
|
||||
}
|
||||
|
||||
public function customisationUpdate()
|
||||
{
|
||||
$configs = [
|
||||
'public_index_img_url'
|
||||
];
|
||||
|
||||
foreach ($configs as $config) {
|
||||
$c = \App\Config::all()->where('name',$config)->first();
|
||||
$c->data = [request($config)];
|
||||
$c->save();
|
||||
}
|
||||
|
||||
\App\Log::saveLog('Modification de la configuration du site');
|
||||
|
||||
return redirect('/admin/config/customisation')->with('success','Modification sauvegarder avec succès !');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
|
||||
@@ -139,6 +139,17 @@ class EventController extends Controller
|
||||
|
||||
$course = new \App\Course();
|
||||
|
||||
foreach ($event->courses as $c)
|
||||
{
|
||||
if ($c->periode == $p)
|
||||
{
|
||||
if ($c->level == $l)
|
||||
{
|
||||
$course = $c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$users = \App\User::all();
|
||||
$instructor = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user