A
A
Artem2021-05-20 09:49:12
Laravel
Artem, 2021-05-20 09:49:12

Laravel 8 not displaying images. How to fix?

Using Laravel 8.x

Images successfully saved to storage/app/public/imagesLanguage/ directory
Using livewire

$url = $this->image->store('imagesLanguage', 'public');

The database stores imagesLanguage/NAME_PHOTO.TYPE

My config/filesystem.php:
'default' => env('FILESYSTEM_DRIVER', 'local'),
'disks' => [
        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],
        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],
    ],
'links' => [
        public_path('storage') => storage_path('app/public'),
    ],


My blade
60a6084fec418361933337.jpeg

My ENV
APP_URL= 127.0.0.1:8000
ASSET_URL= 127.0.0.1:8000/storage

storage:link
The [E:\root\projects\one\public\storage] link has been connected to [E:\root\projects \one\storage\app/public].
The links have been created.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question