Menus aléatoires !

This commit is contained in:
Olivier DOSSMANN 2021-04-27 19:42:15 +02:00
parent 62747bea5d
commit 27778dc56a

View File

@ -15,7 +15,9 @@ class MenuController extends Controller
public function index() public function index()
{ {
return view('menus') return view('menus')
->with('menus', Menu::get()); ->with('menus', Menu::get()
->random(7)
->shuffle());
} }
/** /**