Laravel-excel 找不到文件

Laravel-excel File not found

我有一张照片位于下面 link:

http://127.0.0.1:8000/photos/391987500/2.jpg

我试图将它包含到 excel 文件中,但我总是出错。

我试试这个:

<img src="/photos/{{$car->lot_id}}/2.jpg" width="30" height="30">

它returns这个错误:

File /photos/391987500/2.jpg not found!

我试试这个:

<img src="{{ public_path() . '/photos/' . $car->lot_id . '/2.jpg'}}" width="200" height="200">

它returns这个错误:

File /Users/apple/projects/asystem/public/photos/391991903/2.jpg not found!

我也试试这个:

<img src="{{ asset('/photos/' . $car->lot_id . '/2.jpg')}}" width="200" height="200">

它也 returns 错误:

File http://127.0.0.1:8000/photos/391987500/2.jpg not found!

我怎样才能完成它?

终于明白了!不需要/只需要<img src="photos/{{$car->lot_id}}/2.jpg" width="30" height="30">

对不起,我的错