Method Zizaco\Entrust\MigrationCommand::handle() does not exist
php artisan entrust:migration throw this ReflectionException Method Zizaco\Entrust\MigrationCommand::handle() does not exist
I found solution by @justem007 take a look here: https://github.com/Zizaco/entrust/issues/826
"Go to the file (vendor-> zizaco-> entrust-> src-> commands-> MigrationCommand.php and change the "fire" method to "handle" and after the command "php artisan entrust: migration" will be generated Migration and just run the "php artisan migrate" command that the tables will be generated in your database."
Thanks a lot @dokicro. You save my day.
Yes, It worked. Thank you
This should be created PR and merged with new tag for Laravel 5.5 Support
Closed since #840 was merged
Funciona com a versão 5.5 do Laravel?
Yes, it works! You can use "zizaco/entrust": "dev-master" instead
Do you have any tutorials to help me set up? Because following the doc I'm having errors the structure changes laravel 5.4 changes a little getting different from the documentation.
I don't have a tutorial. I'd suggest to try in a clean laravel 5.5 so you can see if the problem is the package or you are having other problems. What you need to do is: Add "zizaco/entrust": "dev-master" and run composer update You don't need to add nothing in app.php in laravel 5.5 Then run vendor:publish and select the package Once the config file is added, you can run php artisan entrust:migration and the the migrations. Make sure that you User, Role and Permission models are fine and the namespace/path are correct in the config file.
Hope this help!
It is possible to have the same ACL result using Middleware? I had done a long ago doing so, would the ACL have any more advantage than Middleware?
https://github.com/diegocar448/CodeDelivery/blob/master/app/Http/routes.php
Not sure what you are asking. What is ACL for you? What are you trying to compare? Please be more explanatory.
I talked about access level, when we separated accessibility, responsibilities, administrator levels, clients, user ..... does not ACL do that too?
There are different ways to handle accessibility and responsibilities, it will depend on you and your project. You can cover accessibility with Gates and Policies for example. This package provides you a way to handle roles and permissions in views and you are extending the models to easy assign/attach and remove/deattach permissions and roles. It is not better or worse, it depends on you and your taste.
Works like a charm...
pro yes its work (y)
thenks! helpful for fix this bug with fire method :+1:
The error still exists after install it using composer require zizaco/entrust:5.2.x-dev
I found solution by @justem007 take a look here: #826
"Go to the file (vendor-> zizaco-> entrust-> src-> commands-> MigrationCommand.php and change the "fire" method to "handle" and after the command "php artisan entrust: migration" will be generated Migration and just run the "php artisan migrate" command that the tables will be generated in your database."
thaaaaaaaaaanks
The error still exists after install it using composer require zizaco/entrust:5.2.x-dev
Thanks!=)
I found solution by @justem007 take a look here: #826
"Go to the file (vendor-> zizaco-> entrust-> src-> commands-> MigrationCommand.php and change the "fire" method to "handle" and after the command "php artisan entrust: migration" will be generated Migration and just run the "php artisan migrate" command that the tables will be generated in your database."
Thanks a ton :+1: It works for me