barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.13k stars 1.16k forks source link

laravel5 error #125

Closed dbwhddn10 closed 4 years ago

dbwhddn10 commented 9 years ago

screenshot-1

JDR42 commented 9 years ago

bump laravel-ide-helper_error

barryvdh commented 9 years ago

So any idea how to fix? I'm not using L5 yet.

Schnoop commented 9 years ago

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.

PEKTOP commented 9 years ago
$ 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
Schnoop commented 9 years ago

Fixed:

https://github.com/laravel/framework/commit/06561836974ab477f167304aa4a780c87b8643a3

rodrigopedra commented 9 years ago

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

mormy commented 9 years ago

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?

mfn commented 4 years ago

This concern(s|d) Laravel 5, we're at 6. I think it's safe to close this.