Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $files = File::latest()->paginate(8);
     return view('files.index', compact('files'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $files = File::latest()->get();
     return view('file.index', compact('files'));
 }