コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $pagesize = 15;
     $depts = Department::paginate($pagesize);
     return view('admin.departments', ['depts' => $depts]);
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $departments = Department::paginate(30);
     return View('departments.index', compact('departments'));
 }