Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Laravel5 IDE Helper

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install Laravel5 IDE Helper". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Laravel5 IDE Helper.

Installation method 1, method 1: directly use the generated files

Download _ ide_helper.php and place it in the root directory of the project.

2. Method 2: generate manually

Import the library:

Composer require barryvdh/laravel-ide-helper

Add to the providers of config/app.php:

Barryvdh\ LaravelIdeHelper\ IdeHelperServiceProvider::class

Generate auxiliary files:

Php artisan ide-helper:generate

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

Configure composer.json to execute after each commit.

"scripts": {"post-update-cmd": ["php artisan clear-compiled", "php artisan ide-helper:generate", "php artisan optimize"]}, thank you for reading. This is the content of "how to install Laravel5 IDE Helper". After the study of this article, I believe you have a deeper understanding of how to install Laravel5 IDE Helper. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report