MorphPivot::clearBootedModels()

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

MorphPivot::cacheMutatedAttributes()

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

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

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

MorphPivot::attributesToArray()

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

MorphPivot::applyGlobalScopes()

Builder applyGlobalScopes(Builder $builder) Apply all of the global scopes to an Eloquent builder. Parameters Builder $builder Return Value Builder

MorphPivot::append()

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

MorphPivot::all()

static Collection|Model[] all(array|mixed $columns = array('*')) Get all of the models from the database. Parameters array|mixed $columns Return Value Collection|Model[]

MorphPivot::addVisible()

void addVisible(array|string|null $attributes = null) Add visible attributes for the model. Parameters array|string|null $attributes Return Value void

MorphPivot::addObservableEvents()

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