Pivot::append()

$this append(array|string $attributes) Append attributes to query when building a query. Parameters array|string $attributes Return Value $this

Pivot::attributesToArray()

array attributesToArray() Convert the model's attributes to an array. Return Value array

Pivot::belongsTo()

BelongsTo belongsTo(string $related, string $foreignKey = null, string $otherKey = null, string $relation = null) Define an inverse one-to-one or many relationship. Parameters string $related string $foreignKey string $otherKey string $relation Return Value BelongsTo

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

Pivot::cacheMutatedAttributes()

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

Pivot::clearBootedModels()

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

Pivot::create()

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

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

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

Pivot::delete()

bool|null delete() Delete the pivot model record from the database. Return Value bool|null