search
Homephp教程php手册lumen可以使用laravel-ide-helper,lumen

lumen可以使用laravel-ide-helper,lumen

1.laravel-ide-helper 地址https://github.com/barryvdh/laravel-ide-helper

在项目根目录执行composer安装命令

composer require barryvdh/laravel-ide-helper:'2.1.0'

2.在app/bootstrap中的app.php中加入IdeHelperServiceProvider的注册代码

$app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);

 

3.打开命令行切换到项目根目录执行以下命令

php artisan ide-helper:generate - phpDoc generation for Laravel Facades 
 
php artisan ide-helper:models - phpDocs for models
 
php artisan ide-helper:meta - PhpStorm Meta file

 命令执行完成后会在目录中生成一个_ide_helper.php文件。

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools