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') ImageColumn::make('image')
->label('Bild') ->label('Bild')
->size('100%') ->size('100%')
->disk('public')
->extraImgAttributes([ ->extraImgAttributes([
'class' => 'rounded-md', 'class' => 'rounded-md',
'loading' => 'lazy' 'loading' => 'lazy'
]), ]),
//->visibility('private'),
TextColumn::make('desc') TextColumn::make('desc')
->label('Beskrivning') ->label('Beskrivning')
->sortable() ->sortable()

View file

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

View file

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