Model::fromDateTime()

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

Model::freshTimestampString()

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

Model::freshTimestamp()

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

Model::fresh()

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

Model::forceFill()

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

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

Model::forceCreate()

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

Model::flushEventListeners()

static void flushEventListeners() Remove all of the event listeners for the model. Return Value void

Model::fillable()

$this fillable(array $fillable) Set the fillable attributes for the model. Parameters array $fillable Return Value $this

Model::fill()

$this fill(array $attributes) Fill the model with an array of attributes. Parameters array $attributes Return Value $this Exceptions MassAssignmentException