Home  >  Article  >  Backend Development  >  PHP IDE PHPStorm configuration supports friendly Laravel code prompt method

PHP IDE PHPStorm configuration supports friendly Laravel code prompt method

高洛峰
高洛峰Original
2017-03-23 11:07:521145browse

PHPStorm artifact can support more friendly laravel framework code prompts (click to view), you only need to do the following:
Step 1: Add the following line to the project's composer.json

"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:

'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',

Step 4: Execute php artisan ide-helper:generate
Step 5: Modify composer.json and add a line

"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize",
"php artisan ide-helper:generate"
 
]


For more PHP IDE PHPStorm configuration support friendly Laravel code prompt methods, please pay attention to the PHP Chinese website for related articles!

Related articles:

How does phpStorm use FTP and SSH to connect to the virtual machine Linux system?

Detailed explanation of the steps to use SFTP in Phpstorm

Usage Memo (1)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn