Random recipes in homepage

This commit is contained in:
Sebastien Hattry 2023-06-07 12:48:59 +00:00
parent 488e478e86
commit 913f19f5a4

View file

@ -21,6 +21,7 @@ class HomeController extends Controller
// 3 Recettes.
$publishedRecipes = Recipe::where('status', true)
->inRandomOrder()
->take(3)
->get();