摘要:在模型product.php中增加以下方法.数据库图片字段为image.存储的图片相对路径 public function getImageUrlAttribute() { // 如果 image 字段本身就已经是完整的 url 就直接返回 if (Str::startsWith($this->attributes['image'], ['http://', 'https://'])) { ret
阅读全文
08 2019 档案
摘要:在模型product.php中增加以下方法.数据库图片字段为image.存储的图片相对路径 public function getImageUrlAttribute() { // 如果 image 字段本身就已经是完整的 url 就直接返回 if (Str::startsWith($this->attributes['image'], ['http://', 'https://'])) { ret
阅读全文
摘要:关于laravel-admin进入有图片上传页面时,会提示未配置存储路径等信息.此时需要去配置. 查看config/admin.php里面有
阅读全文
摘要:示例:安装sweetalert插件 1.yarn add sweetalert 2.resources/js/bootstrap.js中引入:
阅读全文
|