digitaldreams / laracrud

Laravel Code Generator based on MySQL Database
MIT License
331 stars 54 forks source link

Updates on model interface #24

Closed angujo closed 3 years ago

angujo commented 6 years ago

The following changes have been added;

  1. Generate multiple models using all or *
  2. 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)->...
  3. Traits to allow modification and extension of models without worrying over custom codes being overwritten
  4. Auto-detect, enable and cast timestamps e.g. created_at and updated_at
  5. Auto-detect deleted_at and add SoftDeletes trait into a model
  6. Overwrite files with new changes, if any
  7. Carbon datatype cast for datetime columns

I hope this goes a long way in assisting someone as they continue to assist me.