/** * Bind data to the view. * * @param View $view * @return void */ public function compose(View $view) { $albums = AlbumReview::orderBy('id', 'desc')->take(2)->get(); $view->with('albums', $albums); }
/** * Display a listing of the Album Reviews. * * @return Response */ public function index() { $reviews = AlbumReview::orderBy('band_name', 'asc')->get(); return view('admin.reviews.index', ['reviews' => $reviews]); }