Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm plugin for Lumen just like Laravel

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?

like image 403
AlexW.H.B. Avatar asked Jul 16 '15 03:07

AlexW.H.B.


1 Answers

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
like image 69
Luís Cruz Avatar answered Oct 02 '22 23:10

Luís Cruz