app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return Renderable
     */
Show the application dashboard.
@return Renderable
Show the application dashboard . @return Renderable
public function index()
    {
        return view('home', [
            'tryListRecipes' => Recipe::whereIn('id', WantToMakeList::where('user_id', '=', Auth::User()->id)->pluck('recipe_id'))->take(3)->get(),
            'recipes' => Recipe::where('user_id', '=', Auth::User()->id)->take(3)->get(),
            'cookbooks' => Cookbook::where('user_id', '=', Auth::User()->id)->take(3)->get()]);
    }
public function index ( ) { return view ( 'home' , [ 'tryListRecipes' => Recipe :: whereIn ( 'id' , WantToMakeList :: where ( 'user_id' , '=' , Auth :: User ( ) -> id ) -> pluck ( 'recipe_id' ) ) -> take ( 3 ) -> get ( ) , 'recipes' => Recipe :: where ( 'user_id' , '=' , Auth :: User ( ) -> id ) -> take ( 3 ) -> get ( ) , 'cookbooks' => Cookbook :: where ( 'user_id' , '=' , Auth :: User ( ) -> id ) -> take ( 3 ) -> get ( ) ] ) ; }
Show the application dashboard.
Show the application dashboard .