HomeController add warning if game cannot be enabled
This commit is contained in:
parent
89e0aa0fdc
commit
1d3f6138dd
1 changed files with 3 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue