Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $videos = Video::paginate(6);
     return view('welcome', compact('videos'));
 }
 /**
  * 
  * 
  * @param  [type] $depth [description]
  * @return [type]        [description]
  */
 public function paginate($depth)
 {
     return Video::paginate($depth);
 }