11

I found this tutorial to install a plugin for Laravel and have its methods completed by PHPStorm.

I does not seem to work for Lumen. Are there any solutions out there that currently support Lumen since Lumen is kind of a subset of Laravel?

1

1 Answer 1

12

Laravel-ide-helper supports Lumen as of August 2015. Here's what you need to do:

Either execute the command

composer require barryvdh/laravel-ide-helper

or add the following to the require key in composer.json:

"barryvdh/laravel-ide-helper": "2.*"

Once you have installed the dependency, edit the file bootstrap/app.php and look for the Register Service Providers section and add the following line:

$app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);

After that, you just need to create the _ide_helper.php file with the following command:

php artisan ide-helper:generate
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.