HomeController add warning if game cannot be enabled

This commit is contained in:
Jérémy Munsch 2023-12-19 13:08:20 +01:00
parent 89e0aa0fdc
commit 1d3f6138dd
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -20,6 +20,9 @@ class HomeController extends Controller
*/
public function home(): View
{
if (!Gate::check('fo.gameEnabled')) {
\session()->flash('warning', trans('Il manque des éléments pour que le jeu soit jouable'));
}
return view('theme::pages.home');
}