1、直接上代码截图
在你要做上传图片的控制器里面的form方法里面添加一行这个
$form->image(‘head_img’,‘用户头像’)
->thumbnail(‘small’, $width = 200, $height = 200)->removable();
2、配置
composer require intervention/image
先安装这个扩展包
3、config\filesystems.php文件里面增加如下代码
‘admin’ =&
1、直接上代码截图
在你要做上传图片的控制器里面的form方法里面添加一行这个
$form->image(‘head_img’,‘用户头像’)
->thumbnail(‘small’, $width = 200, $height = 200)->removable();
2、配置
composer require intervention/image
先安装这个扩展包
3、config\filesystems.php文件里面增加如下代码
‘admin’ =&