Instance configuration
Configure the data model with the following constants.
table
Set the namephp of the table the data model should use. Include a tableAlias by setting it as an array.
Include a tableAlias.
fillable
The fillable constant restricts the set() method, to only write to the defined columns.
hidden
Suppress the column output to null. Useful to hide data from f.ex. columns like password.
dates
The dates constant tells methods like insert(), update() and delete() to set the current time in the corresponding timestamp columns.
softDelete
Setting the softDelete option will affect these methods:
Force SELECT methods to only return rows where deleted_at is null.
delete() : will not delete the row, but mark deleted_at with the current time.
Last updated