public function videos()
 {
     $videos = Video::latest()->get();
     return view('front.pages.videos')->with(compact('videos'));
 }
 public function storePoster(Request $request, $id)
 {
     $this->validate($request, ['file' => 'required']);
     $poster = Video::findOrFail($id)->setPoster($request->file('file'));
     return response()->json($poster);
 }