zoukankan      html  css  js  c++  java
  • 后盾网lavarel视频项目---Laravel 安装代码智能提示扩展「laravel-ide-helper」

    后盾网lavarel视频项目---Laravel 安装代码智能提示扩展「laravel-ide-helper」

    一、总结

    一句话总结:

    laravel-ide-helper作用是:代码提示
    laravel-ide-helper安装:github项目里面怎么使用说的很详细

    1、安装barryvdh/laravel-ide-helper:https://packagist.org中搜barryvdh?

    1、composer require --dev barryvdh/laravel-ide-helper
    2、BarryvdhLaravelIdeHelperIdeHelperServiceProvider::class,
    3、php artisan ide-helper:generate
    1、Require this package with composer using the following command:
    composer require --dev barryvdh/laravel-ide-helper
    2、After updating composer, add the service provider to the providers array in config/app.php
    BarryvdhLaravelIdeHelperIdeHelperServiceProvider::class,
    3、You can now re-generate the docs yourself (for future updates)
    php artisan ide-helper:generate

     

    二、Laravel 安装代码智能提示扩展「laravel-ide-helper」

    转自或参考:Laravel 安装代码智能提示扩展「laravel-ide-helper」
    https://www.cnblogs.com/woider/p/6105877.html

    ========================laravel-ide-helper========================

    使用 Laravel 框架IDE居然没有智能提示?这感觉实在太糟糕了!

    不用担心,laravel-ide-helper 这个扩展可以帮你解决这个烦恼。

    不过在安装这个插件之前,你需要安装 composer 包管理工具。如果你还没装,可以到 composer 中文网 下载安装。

    其实 composer 不用去背那些复杂的命令,所以大可不必太抵触,积极的拥抱变化吧。

    GitHub项目地址:https://github.com/barryvdh/laravel-ide-helper

    ========================Laravel扩展安装步骤=========================

    1.首先打开控制台,输入cd命令切换到项目根目录下:

    cd C:UsersAdministratorDesktopproject

    2.然后使用 composer 命令获取扩展包:

    composer require barryvdh/laravel-ide-helper

    3.接着打开 config 目录下的 app.php 配置文件,在 providers 中添加:

    BarryvdhLaravelIdeHelperIdeHelperServiceProvider::class,

    (找到 Package Service Providers... 这段注释,在这个位置添加上面的代码即可)

    4.最后按照顺序编译生成提示,插件就安装完成了:

    php artisan clear-compiled
    php artisan ide-helper:generate
    php artisan optimize

    *5.如果你想接收插件的更新的话,还可以在 composer.json 文件中添加依赖:

    "scripts":{
        "post-update-cmd": [
            "Illuminate\Foundation\ComposerScripts::postUpdate",
            "php artisan ide-helper:generate",
            "php artisan ide-helper:meta",
            "php artisan optimize"
        ]
    },

    最后来看看效果:

     
  • 相关阅读:
    Web Application Penetration Testing Local File Inclusion (LFI) Testing Techniques
    [Reproduced works]MongoDB Unauthorized Access Vulnerability
    PHP build notes
    两个坑-Linux下Network-Manager有线未托管-DNS resolv.conf文件开机被清空
    OS命令注入中的空格
    Honeywords项目——检查密码是否被破解的一种简单方法
    如何判断自己的VPS是那种虚拟技术实现的
    reGeorg v1.0内网流量转发
    配置OWASP的ModSecurity规则
    python 2.6 与 2.4 区别
  • 原文地址:https://www.cnblogs.com/Renyi-Fan/p/11515333.html
Copyright © 2011-2022 走看看