app/Http/Controllers/__Old__/__RoleController.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(Request $request)
    {
        $roles = Role::orderBy('id','DESC')->get();
        return view('roles.index',compact('roles'))
            ->with('i', ($request->input('page', 1) - 1) * 20);
    }
public function index ( Request $ request ) { $ roles = Role :: orderBy ( 'id' , 'DESC' ) -> get ( ) ; return view ( 'roles.index' , compact ( 'roles' ) ) -> with ( 'i' , ( $ request -> input ( 'page' , 1 ) - 1 ) * 20 ) ; }
Display a listing of the resource.
Display a listing of the resource .