Random recipes in homepage
This commit is contained in:
parent
488e478e86
commit
913f19f5a4
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class HomeController extends Controller
|
|||
|
||||
// 3 Recettes.
|
||||
$publishedRecipes = Recipe::where('status', true)
|
||||
->inRandomOrder()
|
||||
->take(3)
|
||||
->get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue