Laravel:电子邮件中的存储映像访问
我创建了Laravel:电子邮件中的存储映像访问,laravel,laravel-5.5,Laravel,Laravel 5.5,我创建了php artisan存储:link并通过电子邮件发送图像,但当我尝试发送图像时,它不会显示在电子邮件中 我已将图像路径存储在数据库中。例如:/storage/images/user/post/19389aab0edb150ccfcbe0c6bce263409db9be7c.jpg 当我dd代码资产('/storage/images/user/post/19389aab0edb150ccfcbe0c6bce263409db9be7c.jpg') 它显示类似url的内容 http://19
php artisan存储:link
并通过电子邮件发送图像,但当我尝试发送图像时,它不会显示在电子邮件中
我已将图像路径存储在数据库中。例如:/storage/images/user/post/19389aab0edb150ccfcbe0c6bce263409db9be7c.jpg
当我dd
代码资产('/storage/images/user/post/19389aab0edb150ccfcbe0c6bce263409db9be7c.jpg')
它显示类似url的内容
http://192.168.5.158:8000/storage/images/user/post/19389aab0edb150ccfcbe0c6bce263409db9be7c.jpg
但它不起作用。我还尝试了
URL::asset('imagepath')
。不起作用。我该怎么做?这是刀片文件中的代码吗?另外,您是否使用降价邮件发送电子邮件?使用sparkpost
并创建自己的模板