App\Http\Controllers\Backend\RoleController::index PHP Method

index() public method

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function index()
    {
        $roles = $this->roles->orderBy('id', 'desc')->paginate(10);
        return view('backend.role.index', compact('roles'));
    }