ModelInfo
class ModelInfo implements Arrayable, ArrayAccess (View source)
| internal |
Methods
__construct(TModel> $class, string $database, string $table, class-string|null $policy, Collection<int, array<string, mixed>> $attributes, Model>}> $relations, Collection<int, array{event: string, class: string}> $events, Collection<int, array{event: string, observer: array<int, string>}> $observers, TModel>> $collection, TModel>> $builder, JsonResource|null $resource)
No description
TReturn
toArray()
Convert the model info to an array.
bool
offsetExists(mixed $offset)
Determine if the given offset exists.
mixed
offsetGet(mixed $offset)
Get the value for a given offset.
void
offsetSet(mixed $offset, mixed $value)
Set the value at the given offset.
void
offsetUnset(mixed $offset)
Unset the value at the given offset.
Details
__construct(TModel> $class, string $database, string $table, class-string|null $policy, Collection<int, array<string, mixed>> $attributes, Model>}> $relations, Collection<int, array{event: string, class: string}> $events, Collection<int, array{event: string, observer: array<int, string>}> $observers, TModel>> $collection, TModel>> $builder, JsonResource|null $resource)
No description
TReturn
toArray()
Convert the model info to an array.
bool
offsetExists(mixed $offset)
Determine if the given offset exists.
mixed
offsetGet(mixed $offset)
Get the value for a given offset.
void
offsetSet(mixed $offset, mixed $value)
Set the value at the given offset.
void
offsetUnset(mixed $offset)
Unset the value at the given offset.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.