name('Project') ->model(Project::class) ->expectsJsonData() ->transformer(ModelTransformer::class) ->itemKey('project') ->collectionKey('projects') ->deny(AclRoles::UNAUTHORIZED) ->handler(CrudResourceController::class) ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()); } }