Model::destroy()

static int destroy(array|int $ids) Destroy the models for the given IDs. Parameters array|int $ids Return Value int

Model::deleting()

static void deleting(Closure|string $callback, int $priority) Register a deleting model event with the dispatcher. Parameters Closure|string $callback int $priority Return Value void

Model::deleted()

static void deleted(Closure|string $callback, int $priority) Register a deleted model event with the dispatcher. Parameters Closure|string $callback int $priority Return Value void

Model::delete()

bool|null delete() Delete the model from the database. Return Value bool|null Exceptions Exception

Model::creating()

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

Model::created()

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

Model::create()

static Model create(array $attributes = array()) Save a new model and return the instance. Parameters array $attributes Return Value Model

Model::clearBootedModels()

static void clearBootedModels() Clear the list of booted models so they will be re-booted. Return Value void

Model::cacheMutatedAttributes()

static void cacheMutatedAttributes(string $class) Extract and cache all the mutated attributes of a class. Parameters string $class Return Value void

Model::belongsToMany()

BelongsToMany belongsToMany(string $related, string $table = null, string $foreignKey = null, string $otherKey = null, string $relation = null) Define a many-to-many relationship. Parameters string $related string $table string $foreignKey string $otherKey string $relation Return Value BelongsToMany