Colymba\RESTfulAPI\Serializers\DefaultSerializer::isEmbeddable
Checks if a speicific model's relation should have its records embedded.
Signature
protected function isEmbeddable(string
$model,
string
$relation )
Parameters
$model
— string- Model's classname
$relation
— string- Relation name
Returns
- boolean
- Trus if the relation should be embedded