Pivot::getAttribute()

mixed getAttribute(string $key) Get an attribute from the model. Parameters string $key Return Value mixed

Pivot::getActualClassNameForMorph()

string getActualClassNameForMorph(string $class) Retrieve the fully qualified class name from a slug. Parameters string $class Return Value string

Pivot::fromRawAttributes()

static Pivot fromRawAttributes(Model $parent, array $attributes, string $table, bool $exists = false) Create a new pivot model from raw values returned from a query. Parameters Model $parent array $attributes string $table bool $exists Return Value Pivot

Pivot::fromJson()

mixed fromJson(string $value, bool $asObject = false) Decode the given JSON back into an array or object. Parameters string $value bool $asObject Return Value mixed

Pivot::fromDateTime()

string fromDateTime(DateTime|int $value) Convert a DateTime to a storable string. Parameters DateTime|int $value Return Value string

Pivot::freshTimestampString()

string freshTimestampString() Get a fresh timestamp for the model. Return Value string

Pivot::freshTimestamp()

Carbon freshTimestamp() Get a fresh timestamp for the model. Return Value Carbon

Pivot::fresh()

$this|null fresh(array|string $with = array()) Reload a fresh model instance from the database. Parameters array|string $with Return Value $this|null

Pivot::forceFill()

$this forceFill(array $attributes) Fill the model with an array of attributes. Force mass assignment. Parameters array $attributes Return Value $this

Pivot::forceDelete()

bool|null forceDelete() Force a hard delete on a soft deleted model. This method protects developers from running forceDelete when trait is missing. Return Value bool|null