/** * Display the videos sitemap * * @return \Illuminate\Http\Response */ public function videos() { $videos = Video::orderBy('created_at', 'desc')->select(['created_at', 'permalink'])->get(); return Response::view('public/sitemap/videos', ['videos' => $videos], 200, ['Content-Type' => 'text/xml; charset=UTF-8']); }
/** * Display videos listing. * * @return Response */ public function index() { $videos = Video::orderBy('created_at', 'desc')->select('id', 'title', 'permalink', 'active')->paginate(10); return view('admin.videos.index', compact('videos')); }