Используется Laravel 8.x
Изображения успешно сохраняются в директорию storage/app/public/imagesLanguage/
При помощи livewire
$url = $this->image->store('imagesLanguage', 'public');
В базе хранится imagesLanguage/ИМЯ_ФОТО.ТИП
Мой 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'),
],
Мой blade
Мой 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.