static int destroy(array|int $ids) Destroy the models for the given IDs. Parameters array|int $ids Return Value int
bool|null delete() Delete the model from the database. Return Value bool|null Exceptions Exception
static void creating(Closure|string $callback, int $priority) Register a creating model event with the dispatcher. Parameters Closure|string $callback int $priority Return Value void
static void created(Closure|string $callback, int $priority) Register a created model event with the dispatcher. Parameters Closure|string $callback int $priority Return Value void
static Model create(array $attributes = array()) Save a new model and return the instance. Parameters array $attributes Return Value Model
bool cannot(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability. Parameters string $ability array|mixed $arguments Return Value bool
static void clearBootedModels() Clear the list of booted models so they will be re-booted. Return Value void
bool cant(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability. Parameters string $ability array|mixed $arguments Return Value bool
static void cacheMutatedAttributes(string $class) Extract and cache all the mutated attributes of a class. Parameters string $class Return Value void
bool can(string $ability, array|mixed $arguments = array()) Determine if the entity has a given ability. Parameters string $ability array|mixed $arguments Return Value bool
Page 53 of 996