Class ResourceService
- Skimia\ApiFusion\Domain\ResourceService uses Skimia\ApiFusion\Domain\Traits\CheckableTrait
Methods summary
public
|
#
__construct(
Set the resource's model and validator. |
protected
|
|
protected
|
|
public
Illuminate\Database\Eloquent\Collection
|
|
public
BaseModel
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
mixed
|
|
protected
|
|
protected
boolean
|
#
readAuthorised( )
Check if read operations are authorised on the service Typically redifined in subclasses. |
protected
boolean
|
#
storeAuthorised( )
Check if store operations are authorised on the service Typically redifined in subclasses. |
protected
boolean
|
#
updateAuthorised( )
Check if update operations are authorised on the service Typically redifined in subclasses. |
protected
boolean
|
#
destroyAuthorised( )
Check if destroy operations are authorised on the service Typically redifined in subclasses. |
protected
|
#
domainRulesOnRead( array $input )
Run rule checks that apply during resource read Typically redifined in subclasses. |
protected
|
#
domainRulesOnStore( array $input )
Run rule checks that apply during resource store Typically redifined in subclasses. |
protected
|
#
domainRulesOnUpdate( array $input, array $original )
Run rule checks that apply during resource update Typically redifined in subclasses. |
protected
|
#
domainRulesOnDestroy( array $original )
Run rule checks that apply during resource destroy Typically redifined in subclasses. |
Methods used from Skimia\ApiFusion\Domain\Traits\CheckableTrait
applyDomainRules()
,
applyValidationRules()
,
checkAuthorisation()
,
runChecks()
Properties summary
protected
|
$model
The resource's model object that the service will use. |
|
protected
|
$user
User of the service. |
|
protected
array
|
$orderBy
Field to order results by. |
#
['created_at']
|
protected
array
|
$eagerLoad
Related resources to eager load. |
#
[]
|