This commit is contained in:
Anna-Sara Sélea 2025-05-13 21:43:43 +02:00
parent bf30fb6af1
commit f6b8ae7104
3 changed files with 3 additions and 7 deletions

View file

@ -58,11 +58,11 @@ class Reserve extends BasePage implements HasTable
ImageColumn::make('image')
->label('Bild')
->size('100%')
->disk('public')
->extraImgAttributes([
'class' => 'rounded-md',
'loading' => 'lazy'
]),
//->visibility('private'),
TextColumn::make('desc')
->label('Beskrivning')
->sortable()

View file

@ -75,12 +75,10 @@ class ItemResource extends Resource
FileUpload::make('image')
->label('Image')
->disk('public')
->directory('images')
->translateLabel()
->minSize(25)
->maxSize(5500)
->columnSpan('full')
//->visibility('private')
->image(),
TextInput::make('desc')
->label('Description')
@ -148,8 +146,6 @@ class ItemResource extends Resource
ImageColumn::make('image')
->label('Image')
->translateLabel()
->disk('public')
//->visibility('private')
->extraImgAttributes([
'class' => 'rounded-md',
'loading' => 'lazy'

View file

@ -40,8 +40,8 @@ return [
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
//'url' => 'media.boka.vbytes.se',
//'url' => env('APP_URL').'/storage',
'url' => 'media.boka.vbytes.se/storage',
'visibility' => 'public',
'throw' => false,
],