PHPStorm artifact can support more friendly laravel framework code prompt (click to view). You only need to execute the following:
Step 1: Add the following line
to the project’s composer.json
Copy code The code is as follows:
"require": {
"laravel/framework": "5.0.*",
"barryvdh/laravel-ide-helper":"dev-master"
}
Step 2: Execute composer update
Step 3: Add service provider, open the project config/app.php and add the following line to providers:
Copy code The code is as follows:
'BarryvdhLaravelIdeHelperIdeHelperServiceProvider',
Step 4: Execute php artisan ide-helper:generate
Step 5: Modify composer.json and add a line
Copy code The code is as follows:
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize",
"php artisan ide-helper:generate"
]
Take a look at the effect: