如下图,只能选择第5项[5] Provider: Intervention\Image\ImageServiceProviderLaravelRecent
整个过程如下
D:\www\laravel55.bbs>php artisan cache:clear
Cache cleared successfully.
D:\www\laravel55.bbs>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: Fideloper\Proxy\TrustedProxyServiceProvider
[2] Provider: Illuminate\Mail\MailServiceProvider
[3] Provider: Illuminate\Notifications\NotificationServiceProvider
[4] Provider: Illuminate\Pagination\PaginationServiceProvider
[5] Provider: Intervention\Image\ImageServiceProviderLaravelRecent
[6] Provider: Laravel\Tinker\TinkerServiceProvider
[7] Tag: laravel-mail
[8] Tag: laravel-notifications
[9] Tag: laravel-pagination
> 5
5[K
Publishing complete.
D:\www\laravel55.bbs>php artisan tinker
Psy Shell v0.9.11 (PHP 7.3.5 — cli) by Justin Hileman
>>> config('image')
=> [
"driver" => "gd",
]
>>>
实际上,我的配置文件应该显示下面这样的才对
[
'driver' => 'imagick',
'avatar_max_width' => 300,
];
总之,问题出在了vendor:publish命令上了,无效的。改用laravel 5.8测试,也没效果。