/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $videos = Video::latest()->get(); return view('admin.videos.showAllVideos')->with('videos', $videos); }
/** * Show all videos. * * @return Response */ public function index() { $videos = Video::latest('published_at')->published()->get(); return view('videos.index', compact('videos')); }