Answer the question
In order to leave comments, you need to log in
Why does laravel get 403 error when using asset?
I am using laravel asset helper to display image.
<td><img src="{{ asset('assets/far/img/product/' . $item['img']) }}" height="50px" alt=""></td>
$item['img'] получаю из сессии
@foreach( session()->get('cart') as $item)
<td><img src="{{ asset('/' . $item['img']) }}" height="50px" alt=""></td>
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/public',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
],
],
'links' => [
public_path('storage') => storage_path('app/public'),
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question