app/Http/Controllers/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()
    {
        Gate::authorize('haveaccess','role.index');
        $roles =  Role::orderBy('id','Desc')->paginate(10);
        return view('role.index',compact('roles'));
    }
public function index ( ) { Gate :: authorize ( 'haveaccess' , 'role.index' ) ; $ roles = Role :: orderBy ( 'id' , 'Desc' ) -> paginate ( 10 ) ; return view ( 'role.index' , compact ( 'roles' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//