static void setConnectionResolver(
Model create(array $attributes)
Builder getQuery()
$this setKeyName(string $key) Set the primary key for the model.
void addConstraints() Set the base constraints on the relation query.
static void saving(Closure|string $callback, int $priority)
static void saved(Closure|string $callback, int $priority)
static void deleted(Closure|string $callback, int $priority)
string joiningTable(string $related) Get the joining table name for a many-to-many
bool relationLoaded(string $key) Determine if the given relation is loaded
Page 2 of 87