-
-
Notifications
You must be signed in to change notification settings - Fork 375
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 use LaratrustUserTrait
with a command call
#3
Comments
Pushed it onto Github: https://github.com/KKSzymanowski/Traitor |
use LaratrustUserTrait
use LaratrustUserTrait
with a command call
Hi @KKSzymanowski! Nice idea and thanks for your proposal but to be honest, we are trying to make the package as self-contained as possible. The less things the package does, the better. |
Nevertheless I can see what drove your decision, but in my opinion, this package(as well as Zizaco/Entrust) has a quite complicated installation process and it's easy to forget one of the steps. I'm not saying it's a drawback, but I think it can be improved greatly. What I mean is to add these commands:
What I've implemented adds 3 new classes for each command and 2 stubs for Role and Permission model. I don't think, it's that much of a weight. Furthermore, these classes are only used when running commands from console. |
@KKSzymanowski You're totally right, could you please make the PR with the changes that you're mentioning, so we can give it a try. Yes, the installation process is too complicated, and we want to improve it to make it as easy as possible, maybe doing everything with a single command would improve that. |
I'm happy to hear that. |
One last thought: |
That's exactly what we want! A single command for the entire setup (apart from the ServiceProvider) |
Hi.
I'm currently working on package which:
use Trait
at the top of the class definitionAre you interested in integrating it with your package to automatically add
LaratrustUserTrait
toApp\User
class(eg. with a command)? If so, I will put together a PR and post it within few days.The text was updated successfully, but these errors were encountered: