abstract class AbstractModel extends Model
Base model class, building on Eloquent.
Adds the ability for custom relations to be added to a model during runtime. These relations behave in the same way that you would expect; they can be queried, eager loaded, and accessed as an attribute.
Properties
Methods
Details
at
line 71
static
boot()
at
line 88
__construct(array $attributes = [])
at
line 103
array
getCasts()
at
line 117
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
at
line 125
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.