/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $recipes = Recipes::orderByRaw("RAND()")->limit(3)->get(); return view('home')->with('recipes', $recipes); }