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