Home > PHP Framework > Laravel > body text

How to install Laravel 5 IDE Helper

藏色散人
Release: 2021-07-07 09:14:28
forward
2046 people have browsed it

How to install Laravel 5 IDE Helper

Laravel 5 IDE Helper Installation

1. Project Address

https://github.com/ barryvdh/laravel-ide-helper

2. Installation method

1. Method 1: Directly use the generated file

Download https://gist.github.com _ide_helper.php in /barryvdh/5227822 is placed in the project root directory.

2. Method 2: Manually generate

Import library:

composer require barryvdh/laravel-ide-helper
Copy after login

Add in config/app.php providers:

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Copy after login

Generate auxiliary files:

php artisan ide-helper:generate
Copy after login

Tips: You need to clear bootstrap/compiled.php first, so you need to execute php artisan clear-compiled before generation, and after generation Execute php artisan optimize.

Configure composer.json to execute after each commit.

"scripts":{
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan ide-helper:generate",
        "php artisan optimize"
    ]
},
Copy after login

Related recommendations: The latest five Laravel video tutorials

The above is the detailed content of How to install Laravel 5 IDE Helper. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template