User::setConnection()

$this setConnection(string $name) Set the connection associated with the model. Parameters string $name Return Value $this

User::setAttribute()

$this setAttribute(string $key, mixed $value) Set a given attribute on the model. Parameters string $key mixed $value Return Value $this

User::setAppends()

$this setAppends(array $appends) Set the accessors to append to model arrays. Parameters array $appends Return Value $this

User::saving()

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

User::saveOrFail()

bool saveOrFail(array $options = array()) Save the model to the database using transaction. Parameters array $options Return Value bool Exceptions Throwable

User::saved()

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

User::save()

bool save(array $options = array()) Save the model to the database. Parameters array $options Return Value bool

User::resolveConnection()

static Connection resolveConnection(string|null $connection = null) Resolve a connection instance. Parameters string|null $connection Return Value Connection

User::replicate()

Model replicate(array $except = null) Clone the model into a new, non-existing instance. Parameters array $except Return Value Model

User::removeObservableEvents()

void removeObservableEvents(array|mixed $observables) Remove an observable event name. Parameters array|mixed $observables Return Value void