app/Http/Controllers/Admin/AdminController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    { 
       $pageSize = config('app.pageSize');
       $admin = Admin::orderBy('admin_id','desc')->paginate($pageSize);
       return view('admin.admin.index',['admin'=>$admin]); 
    }
public function index ( ) { $ pageSize = config ( 'app.pageSize' ) ; $ admin = Admin :: orderBy ( 'admin_id' , 'desc' ) -> paginate ( $ pageSize ) ; return view ( 'admin.admin.index' , [ 'admin' => $ admin ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//orm操作