class Delete extends Endpoint
Traits
Properties
| protected array<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
Eager load relations when a relation is included in the serialized response.
Allows loading a relationship with additional query modification.
Eager loads relationships before serialization.
No description
The constrained eager loads beneath a relationship the serializer is loading, for `with()` on its query: keyed by the path below it, with their constraints, as compileWhereEagerLoads() gives the top level.
No description
No description
No description
No description
Details
in ShowsResources
at
line 22
protected array
showResource( Context $context, mixed $model)
in HasEagerLoading
at
line 45
HasEagerLoading
eagerLoad(array|string| Closure $relations)
Eager loads relationships needed for serializer logic.
in HasEagerLoading
at
line 61
HasEagerLoading
eagerLoadWhenIncluded(array $includedToRelations)
Eager load relations when a relation is included in the serialized response.
in HasEagerLoading
at
line 87
HasEagerLoading
eagerLoadWhere(string $relation, callable $callback)
Allows loading a relationship with additional query modification.
in HasEagerLoading
at
line 97
protected void
loadRelations( Collection $models, Context $context, array $included = [])
Eager loads relationships before serialization.
in HasEagerLoading
at
line 348
protected array
compileSimpleEagerLoads( Context $context, array $included)
in HasEagerLoading
at
line 364
protected array
compileWhereEagerLoads( Context $context)
in HasEagerLoading
at
line 374
array
getEagerLoadsFor(string $included, Context $context)
in HasEagerLoading
at
line 399
array
getWhereEagerLoadsFor(string $included, Context $context)
The constrained eager loads beneath a relationship the serializer is loading, for `with()` on its query: keyed by the path below it, with their constraints, as compileWhereEagerLoads() gives the top level.