Instance configuration
Configure the data model with the following constants.
Last updated
Configure the data model with the following constants.
Last updated
Set the namephp of the table the data model should use. Include a tableAlias by setting it as an array.
Include a tableAlias.
The fillable constant restricts the set() method, to only write to the defined columns.
Suppress the column output to null. Useful to hide data from f.ex. columns like password.
The dates constant tells methods like insert(), update() and delete() to set the current time in the corresponding timestamp columns.
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.