PHP IDE PHPStorm configuration supports friendly Laravel code prompt method

高洛峰
Release: 2023-03-04 19:14:01
Original
1083 people have browsed it

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" }
Copy after login

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',
Copy after login

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" ]
Copy after login


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)

source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!