您现在的位置是:网站首页>PHPPHP
Laravel执行php artisan vendor:publish卡住问题解决方法
左鹏07-18 16:44:13【PHP】8,936人已围观
简介在执行php artisan vendor:publish时出现以下提示 Which provider or tag's files would you like to publish?: [0 ] Publish files from all providers and&n
在执行php artisan vendor:publish时出现以下提示
Which provider or tag's files would you like to publish?: [0 ] Publish files from all providers and tags listed below [1 ] Provider: Asvae\ApiTester\ServiceProvider [2 ] Provider: Barryvdh\Debugbar\ServiceProvider [3 ] Provider: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider [4 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider [5 ] Provider: Illuminate\Mail\MailServiceProvider [6 ] Provider: Illuminate\Notifications\NotificationServiceProvider [7 ] Provider: Illuminate\Pagination\PaginationServiceProvider [8 ] Provider: Intervention\Image\ImageServiceProviderLaravel5 [9 ] Provider: Laravel\Tinker\TinkerServiceProvider [10] Provider: Maatwebsite\Excel\ExcelServiceProvider [11] Provider: Mews\Captcha\CaptchaServiceProvider [12] Tag: config [13] Tag: laravel-mail [14] Tag: laravel-notifications [15] Tag: laravel-pagination >
只需要在>后面输入要生成的配置文件对应的序列号即可,比如我要生成[11] Provider: Mews\Captcha\CaptchaServiceProvider的配置文件,直接输入11后,回车就可以了,出现Copied File [**.php] To [***.php] Publishing complete.提示就完成了
Which provider or tag's files would you like to publish?: [0 ] Publish files from all providers and tags listed below [1 ] Provider: Asvae\ApiTester\ServiceProvider [2 ] Provider: Barryvdh\Debugbar\ServiceProvider [3 ] Provider: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider [4 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider [5 ] Provider: Illuminate\Mail\MailServiceProvider [6 ] Provider: Illuminate\Notifications\NotificationServiceProvider [7 ] Provider: Illuminate\Pagination\PaginationServiceProvider [8 ] Provider: Intervention\Image\ImageServiceProviderLaravel5 [9 ] Provider: Laravel\Tinker\TinkerServiceProvider [10] Provider: Maatwebsite\Excel\ExcelServiceProvider [11] Provider: Mews\Captcha\CaptchaServiceProvider [12] Tag: config [13] Tag: laravel-mail [14] Tag: laravel-notifications [15] Tag: laravel-pagination > 11 Copied File [/vendor/mews/captcha/config/captcha.php] To [/config/captcha.php] Publishing complete.
php artisan vendor:publish --help
[root@my-dev a]# php artisan vendor:publish --help Usage: vendor:publish [options] Options: --force Overwrite any existing files. --all Publish assets for all service providers without prompt. --provider[=PROVIDER] The service provider that has assets you want to publish. --tag[=TAG] One or many tags that have assets you want to publish. (multiple values allowed) -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: Publish any publishable assets from vendor packages
翻译版如下
用法: vendor:publish [参数]参数: --force 覆盖任何已经存在的文件 --all 不提示直接发布所有 service providers 包含的资源 --provider[=PROVIDER] 指定哪一个 service provider 包含所需发布的资源 --tag[=TAG] 指定一个或多个包含所需资源的 tags -h, --help 显示命令帮助 -q, --quite 执行命令且不输出任何信息 -V, --version 显示应用的版本号(显示的是 Laravel Framework 的版本号) --ansi 强制 ANSI 编码输出 --no-ansi 禁用 ANSI 编码输出 -n, --no-interaction 不提示任何交互式问题 --env[=ENV] 命令将于哪一个环境下执行 -v|vv|vvv, --verbose 增加输出信息的详细级别: 1级=正常输出,2级=更详细的信息,3级=调试信息
点击排行
本栏推荐
猜你喜欢
站点信息
- 建站时间:2018-09-18
- 网站程序:Spring Boot
- 主题模板:《今夕何夕》
- 文章统计:104条
- 微信公众号:扫描二维码,关注我们