Property | Type | Description | |
---|---|---|---|
$_modelPrimaryKey | |||
$collectionKey | |||
$itemKey | |||
$model | |||
$transformer |
Method | Description | |
---|---|---|
collectionKey ( string $collectionKey ) : static | ||
crud ( string $prefix, string $name = null ) : static | Returns resource with default values & all, find, create, update and delete endpoints pre-configured | |
factory ( string $prefix, string $name = null ) : static | Returns resource with default values | |
getCollectionKey ( ) : string | ||
getItemKey ( ) : string | ||
getModel ( ) : string | null | ||
getModelPrimaryKey ( ) : string | null | ||
getMultipleKey ( ) : string | ||
getSingleKey ( ) : string | ||
getTransformer ( ) : string | null | ||
itemKey ( string $itemKey ) : static | ||
model ( string $model ) : static | ||
multipleKey ( string $multipleKey ) : static | ||
singleKey ( string $singleKey ) : static | ||
transformer ( string $transformer ) : static |
public collectionKey ( string $collectionKey ) : static | ||
$collectionKey | string | Response key for multiple items |
return | static |
public getCollectionKey ( ) : string | ||
return | string | Response key for multiple items |
public getItemKey ( ) : string | ||
return | string | Response key for single item |
public getModelPrimaryKey ( ) : string | null | ||
return | string | null | Primary key of the model |
public getMultipleKey ( ) : string | ||
return | string | Response key for multiple items |
public getSingleKey ( ) : string | ||
return | string | Response key for single item |
public getTransformer ( ) : string | null | ||
return | string | null | Classname of the transformer |
public multipleKey ( string $multipleKey ) : static | ||
$multipleKey | string | Response key for multiple items |
return | static |
public transformer ( string $transformer ) : static | ||
$transformer | string | Classname of the transformer |
return | static |