/**
  * Show all recipes.
  *
  */
 public function index()
 {
     $recipes = Recipe::latest('published_at')->published()->get();
     return view('recipes.index', compact('recipes'));
 }
 /**
 * Compose the navigation bar.
 *
 */
 private function composeNavigation()
 {
     view()->composer('layouts.nav', function ($view) {
         $view->with('latest', Recipe::latest()->first());
     });
 }