class Show extends Endpoint
Traits
Properties
| protected (string|callable)[] | $loadRelations | from HasEagerLoading |
|
|
| protected array<string,callable> | $loadRelationWhere | from HasEagerLoading |
|
|
| protected bool|Closure | $authenticated | from HasAuthorization |
|
|
| protected null|string|Closure | $ability | from HasAuthorization |
|
|
| protected bool | $admin | from HasAuthorization |
|
|
| protected array | $before | from HasHooks |
|
|
| protected array | $after | from HasHooks |
|
|
| protected Closure|null | $extractFilterCallback | from ExtractsListingParams |
|
|
| protected Closure|null | $extractSortCallback | from ExtractsListingParams |
|
|
| protected Closure|null | $extractLimitCallback | from ExtractsListingParams |
|
|
| protected Closure|null | $extractOffsetCallback | from ExtractsListingParams |
|
|
| int|null | $limit | from ExtractsListingParams |
|
|
| int | $maxLimit | from ExtractsListingParams |
|
|
| string|null | $defaultSort | from ExtractsListingParams |
|
|
| string | $method | from Endpoint |
|
|
| string | $path | from Endpoint |
|
|
| protected Closure|null | $action | from Endpoint |
|
|
| protected Closure|null | $response | from Endpoint |
|
|
| protected array | $beforeSerialization | from Endpoint |
|
Methods
eagerLoad(array|string|Closure $relations)
Eager loads relationships needed for serializer logic.
from HasEagerLoading
eagerLoadWhenIncluded(array $includedToRelations)
Eager load relations when a relation is included in the serialized response.
from HasEagerLoading
eagerLoadWhere(string $relation, callable $callback)
Allows loading a relationship with additional query modification.
from HasEagerLoading
void
loadRelations(Collection $models, Context $context, array $included = [])
Eager loads relationships before serialization.
from HasEagerLoading
array
compileSimpleEagerLoads(Context $context, array $included)
No description
from HasEagerLoading
array
extractFilterValue(Context $context, array $defaultExtracts)
No description
array|null
extractSortValue(Context $context, array $defaultExtracts)
No description
int|null
extractLimitValue(Context $context, array $defaultExtracts)
No description
int
extractOffsetValue(Context $context, array $defaultExtracts)
No description
Details
in ShowsResources
at
line 22
protected array
showResource(Context $context, mixed $model)
in HasEagerLoading
at
line 38
HasEagerLoading
eagerLoad(array|string|Closure $relations)
Eager loads relationships needed for serializer logic.
in HasEagerLoading
at
line 54
HasEagerLoading
eagerLoadWhenIncluded(array $includedToRelations)
Eager load relations when a relation is included in the serialized response.
in HasEagerLoading
at
line 80
HasEagerLoading
eagerLoadWhere(string $relation, callable $callback)
Allows loading a relationship with additional query modification.
in HasEagerLoading
at
line 90
protected void
loadRelations(Collection $models, Context $context, array $included = [])
Eager loads relationships before serialization.