-
Notifications
You must be signed in to change notification settings - Fork 133
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
feat: add shield:model
command for make custom UserModel
#491
Conversation
The name Where to add documents? Do we need a new CLI file? |
|
I think this is reasonable and good. do you all agree? |
6e8fa2c
to
92ba9d4
Compare
UserModel
shield:model
command for make custom UserModel
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please git rebase -i
so that all commits will be under your name and marked Verified
.
|
||
if (is_file($filepath)) { | ||
unlink($filepath); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to a $this->assertFileExist
test. Deleting the file will be made in tearDown.
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
Co-authored-by: John Paul E. Balandan, CPA <[email protected]>
3047309
to
ee29840
Compare
@datamweb @paulbalandan Where does this PR stand? Other than resolving the conflicts is there anything left? |
I'm not sure with @datamweb on the status. |
It will be great if someone takes over before me. |
Closing this one since another is in its place. |
This command helps to create custom user model.
php spark shield:model MyCustomUser
php spark shield:model MyCustomUser --force
php spark shield:model MyCustomUser --suffix
php spark shield:model MyCustomUser --namespace CodeIgniter\Shield
output
see: ##489 (comment)