Entradas

Mostrando entradas de julio, 2019

Entrust Migration Error Solved

Imagen
Working with JWT and Entrust packages on mi brand new Laravel App I got these errors right after run the command php artisan entrust:migration I know you want the solution right away so... Error: Method Zizaco\Entrust\MigrationCommand::handle() does not exist Solution: Go to the file vendor/zizaco/entrust/src/commands/MigrationCommand.php find the method called "fire" and rename it with "handle" and after the command "php artisan entrust: migration" will be generate. But... If your scenario is identical as mine the next error will be raised... Error: Symfony\Component\Debug\Exception\FatalThrowableError  : Class name must be a valid object or a string Solution: Go to the file vendor/zizaco/entrust/src/commands/MigrationCommand.php (same file we edit before) and change these lines: $usersTable = Config::get('auth.table'); $userModel = Config::get('auth.model'); To: $usersTable = Config::get('auth.providers.user...