User::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

User::delete()

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

User::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

User::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

User::create()

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

User::clearBootedModels()

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

User::cant()

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

User::cannot()

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

User::can()

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

User::cacheMutatedAttributes()

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