ModelInfo
class ModelInfo implements Arrayable, ArrayAccess
Methods
__construct(Model> $class, string $database, string $table, null|class-string $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, Model>> $collection, Model>> $builder, null|JsonResource> $resource)
No description
array
toArray()
Convert the model info to an array.
bool
offsetExists(mixed $offset)
No description
mixed
offsetGet(mixed $offset)
No description
void
offsetSet(mixed $offset, mixed $value)
No description
void
offsetUnset(mixed $offset)
No description
Details
at line 32
__construct(Model> $class, string $database, string $table, null|class-string $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, Model>> $collection, Model>> $builder, null|JsonResource> $resource)
No description
at line 64
array
toArray()
Convert the model info to an array.
at line 81
bool
offsetExists(mixed $offset)
No description
at line 86
mixed
offsetGet(mixed $offset)
No description
at line 91
void
offsetSet(mixed $offset, mixed $value)
No description
at line 96
void
offsetUnset(mixed $offset)
No description