MorphPivot::getAttribute()

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

MorphPivot::getActualClassNameForMorph()

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

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

MorphPivot::fromDateTime()

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

MorphPivot::freshTimestampString()

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

MorphPivot::freshTimestamp()

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

MorphPivot::fresh()

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

MorphPivot::forceFill()

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

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

MorphPivot::forceCreate()

static Model forceCreate(array $attributes) Save a new model and return the instance. Allow mass-assignment. Parameters array $attributes Return Value Model