Const column names to resolve issues of typo on column-based queries
e.g. ...Model::where(Model::ID,'<>',23)->... instead of ..Model::where('id','<>',23)->...
Traits to allow modification and extension of models without worrying over custom codes being overwritten
Auto-detect, enable and cast timestamps e.g. created_at and updated_at
Auto-detect deleted_at and add SoftDeletes trait into a model
Overwrite files with new changes, if any
Carbon datatype cast for datetime columns
I hope this goes a long way in assisting someone as they continue to assist me.
The following changes have been added;
all
or*
..Model::where(Model::ID,'<>',23)->...
instead of..Model::where('id','<>',23)->...
created_at
andupdated_at
deleted_at
and addSoftDeletes
trait into a modelCarbon
datatype cast for datetime columnsI hope this goes a long way in assisting someone as they continue to assist me.