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
static void
flushCastsCache()
Discard the resolved casts, so that newly registered ones are picked up.
Details
at
line 83
static
boot()
at
line 100
__construct(array $attributes = [])
at
line 115
array
getCasts()
at
line 135
static void
flushCastsCache()
Discard the resolved casts, so that newly registered ones are picked up.
at
line 143
void
afterSave(callable $callback)
Register a callback to be run once after the model is saved.
at
line 151
void
afterDelete(callable $callback)
Register a callback to be run once after the model is deleted.