Closed dbwhddn10 closed 4 years ago
bump
So any idea how to fix? I'm not using L5 yet.
Has something to do with the large refactoring of Http and Console stack that Taylor did yesterday. Btw. the Illuminate Html helper, which is no longer part of the laravel framework, is broken too. The request object is missing in the console.
$ php artisan ide-helper:generate
PHP Catchable fatal error: Argument 1 passed to Illuminate\Auth\Guard::setRequest() must be an instance of Symfony\Component\HttpFoundation\Request, null given, called in /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php on line 24 and defined in /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Auth/Guard.php on line 694
PHP Stack trace:
PHP 1. {main}() /home/pektop/phpcode/goodgame/pretender/artisan:0
PHP 2. App\Console\Kernel->handle() /home/pektop/phpcode/goodgame/pretender/artisan:46
PHP 3. Illuminate\Foundation\Console\Kernel->handle() /home/pektop/phpcode/goodgame/pretender/app/Console/Kernel.php:28
PHP 4. Symfony\Component\Console\Application->run() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:71
PHP 5. Symfony\Component\Console\Application->doRun() /home/pektop/phpcode/goodgame/pretender/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 6. Symfony\Component\Console\Application->doRunCommand() /home/pektop/phpcode/goodgame/pretender/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 7. Illuminate\Console\Command->run() /home/pektop/phpcode/goodgame/pretender/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 8. Symfony\Component\Console\Command\Command->run() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Console/Command.php:100
PHP 9. Illuminate\Console\Command->execute() /home/pektop/phpcode/goodgame/pretender/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP 10. Barryvdh\LaravelIdeHelper\Console\GeneratorCommand->fire() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Console/Command.php:112
PHP 11. Barryvdh\LaravelIdeHelper\Generator->__construct() /home/pektop/phpcode/goodgame/pretender/vendor/barryvdh/laravel-ide-helper/src/Console/GeneratorCommand.php:110
PHP 12. Barryvdh\LaravelIdeHelper\Generator->detectDrivers() /home/pektop/phpcode/goodgame/pretender/vendor/barryvdh/laravel-ide-helper/src/Generator.php:48
PHP 13. Illuminate\Support\Facades\Auth::driver() /home/pektop/phpcode/goodgame/pretender/vendor/barryvdh/laravel-ide-helper/src/Generator.php:114
PHP 14. Illuminate\Support\Facades\Facade::__callStatic() /home/pektop/phpcode/goodgame/pretender/vendor/barryvdh/laravel-ide-helper/src/Generator.php:114
PHP 15. Illuminate\Support\Manager->driver() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:205
PHP 16. Illuminate\Auth\AuthManager->createDriver() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Support/Manager.php:61
PHP 17. Illuminate\Auth\Guard->setRequest() /home/pektop/phpcode/goodgame/pretender/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php:24
Also for Laravel 5 Illuminate\Foundation\Artisan
is changed to Illuminate\Support\Facades\Artisan
, so
https://github.com/barryvdh/laravel-ide-helper/blob/master/src/config/config.php#L58
Should be changed in order to work with L5
Actually, you should change it to
'Artisan' => array('Illuminate\Foundation\Console\Kernel'),
So I got Artisan working, but Paginator for some reason won't budge. Although I specified the right class (and added the interface too) ... Still not working.
One more problem. Laravel 5 for some reason doesn't read published config only the vendor one, anyone have any ideas on that?
This concern(s|d) Laravel 5, we're at 6. I think it's safe to close this.