Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates on model interface #24

Closed
wants to merge 16 commits into from
Closed

Conversation

angujo
Copy link

@angujo angujo commented Nov 20, 2018

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.

Copy link
Owner

@digitaldreams digitaldreams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @angujo
Really appreciate your effort and time.
You did a good job.
But its needs more time for myself to test and see what changes you did and have there any effect on overall structure.

Will back to you if needed.
Thanks By
Tuhin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants