This commit is contained in:
Anna-Sara Sélea 2025-05-13 21:01:02 +02:00
parent 8c72ad9993
commit 245fad6625
3 changed files with 6 additions and 7 deletions

View file

@ -57,7 +57,6 @@ class Reserve extends BasePage implements HasTable
->badge(), ->badge(),
ImageColumn::make('image') ImageColumn::make('image')
->label('Bild') ->label('Bild')
->disk('local')
->size('100%') ->size('100%')
->extraImgAttributes([ ->extraImgAttributes([
'class' => 'rounded-md', 'class' => 'rounded-md',

View file

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

View file

@ -39,8 +39,9 @@ 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/storage',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
], ],