Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Error in entrustu:migration #826

Closed drjoju closed 6 years ago

drjoju commented 7 years ago

Hi, I'm trying to install entrust in Laravel Framework 5.5-dev.

I follow the instructions but when I arrive to php artisan entrust:migration an error appears

[ReflectionException]
  Method Zizaco\Entrust\MigrationCommand::handle() does not exist

I copy/paste the providers and aliases so I'm sure that's correct.

I copy paste the migration and follow the installation so all the rest it's correct.

Anyone has this error?

Thanks and best regards

denniskuligin commented 7 years ago

looks like composer wasn't actually installed the entrust package. Try to reinstall it, and run composer dump-autoload

githubwyllie commented 7 years ago

I have the same problem. Is there any solution?

wmlab03 commented 7 years ago

@drjoju @githubwyllie As per laravel5.5 upgrade release, "Any fire methods present on your Artisan commands should be renamed to handle."

Go to MigrationCommand and rename "fire" method to "handle". You should get it working.

justem007 commented 7 years ago

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.

githubwyllie commented 7 years ago

@justem007 @wmlab03 Thanks!

Zizaco commented 6 years ago

Closed since #840 was merged

icelake0 commented 6 years ago

@justem007 its works thanks

lovews28 commented 6 years ago

but not instead。