コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     if (Auth::check()) {
         $videos = Video::personal()->get();
         return view('videos.index')->withVideo($videos);
     }
     return redirect()->route('auth.login');
 }