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

Add SoftDelete Trait support #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

munizeverton
Copy link

Adds the SoftDelete trait if deleted_at field exists in the table

closes #40

@cacpmw
Copy link

cacpmw commented Dec 4, 2018

@krlove please take a look at this PRs

Copy link

@phpguru phpguru left a comment

Choose a reason for hiding this comment

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

Seems pretty legit to me, I'd use it.

Copy link

@CyberSharkyMS CyberSharkyMS left a comment

Choose a reason for hiding this comment

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

I'm suggesting for this code to be reviewed following the latest version of Eloquent Model Generator and hope this can be merged in future updates.

[use]
image

[function process()]
image

[function getPriority()]
image

[Result - Generated Model]
image

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.

SoftDelete trait
4 participants