name('Project') ->model(Project::class) ->expectsJsonData() ->transformer(ProjectTransformer::class) ->handler(CrudResourceController::class) ->singleKey('project') ->multipleKey('projects') //->itemKey('project') ->collectionKey('projects') ->allow(AclRoles::USER) ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()) ; } }