/** * Display a listing of the Videos. * * @return Response */ public function index() { $videos = Video::orderBy('artist', 'asc')->get(); return view('admin.videos.index', ['videos' => $videos]); }
/** * Bind data to the view. * * @param View $view * @return void */ public function compose(View $view) { $video = Video::orderBy('timestamp', 'desc')->first(); $view->with('video', $video); }