/** * Delete a video by Id. * * @return \Illuminate\Http\Response */ public function destroy($id) { Video::destroy($id); return redirect('/dashboard')->with('msg', 'Video deleted successfully.'); }
/** * Handle display of a single video * * @param $videoId * @return \Illuminate\View\View */ public function display($videoId) { $video = Video::find($videoId); return view('pages.single-video', compact(['video'])); }