ModelPropertyExtension
class ModelPropertyExtension implements PropertiesClassReflectionExtension
| internal |
Methods
Create a new model property extension instance.
Determine whether the model has a database property, unless an accessor or mutator handles it.
Get the database property.
Details
at line 19
__construct(ModelPropertyHelper $modelPropertyHelper, ModelRelationsExtension $modelRelationsExtension)
Create a new model property extension instance.
at line 33
bool
hasProperty(ClassReflection $classReflection, string $propertyName)
Determine whether the model has a database property, unless an accessor or mutator handles it.
A property the schema facts cannot establish is left to a declared relation, which Eloquent
reads when no attribute has that name. An abstract model claims no such property: a model
trait's @mixin Model, as on Scout's Searchable, would otherwise give every model every
property. ModelPropertyHelper::acceptsPropertyName() accepts any name for an abstract model instead.
at line 50
PropertyReflection
getProperty(ClassReflection $classReflection, string $propertyName)
Get the database property.