Images won't load

I'm trying to load an image
Forms\Components\RichEditor::make('content')


->fileAttachmentsDisk('public')

->fileAttachmentsDirectory('posts')

->columnSpan(2),
Forms\Components\RichEditor::make('content')


->fileAttachmentsDisk('public')

->fileAttachmentsDirectory('posts')

->columnSpan(2),
It shows that it has loaded on the site. But it does not download to the folder along the path \public\posts. I also tried this code
Forms\Components\FileUpload::make('cover')
->label('Cover Image')
->image()
->directory('posts'),
Forms\Components\FileUpload::make('cover')
->label('Cover Image')
->image()
->directory('posts'),
filesystems.php
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
1 Reply
Smurfetka
SmurfetkaOP14mo ago
Нужно было просто прописать. Странно что этого нету в документации
php artisan storage:link
php artisan storage:link
Want results from more Discord servers?
Add your server