© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
16 replies
Denxio

Private Image not showing

Form:
FileUpload::make('image')
->image()
->disk('local')
->directory('post-images')
->visibility('private')
->placeholder('Upload an image')
->columnSpanFull()
->required(),

Column:
ImageColumn::make('image')
->disk('local')
->visibility('private'),

Error: Still not viewable. Do I need to set up the other configuration files?
Solution
Thanks, @Dennis Koch @awcodes .
I realized that using the column
foto
foto
in both the database as a column name and in the
filesystems.php
filesystems.php
config file was causing the problem.

I discovered when I noticed that setting up the label for "fotos" was ignored in the resource table:
return $table
            ->columns([
                Tables\Columns\ImageColumn::make('foto')
                    ->disk('fotos')
                    ->label('Fotografía') //IGNORED
                ,
return $table
            ->columns([
                Tables\Columns\ImageColumn::make('foto')
                    ->disk('fotos')
                    ->label('Fotografía') //IGNORED
                ,

then I started changing the name to whatever and test the
label()
label()
to see whether or not was ignored.

So, finally it worked when I changed the word "foto" to something else:

 Forms\Components\FileUpload::make('avatar')
                    ->label('Fotografía')
                    ->image()
                    ->disk('avatares')
                    ->storeFileNamesIn('avatares')

//....
return $table
            ->columns([
                Tables\Columns\ImageColumn::make('avatar')
                    ->disk('avatares')
                    ->label('Fotografía') //no longer ignored
                ,
 Forms\Components\FileUpload::make('avatar')
                    ->label('Fotografía')
                    ->image()
                    ->disk('avatares')
                    ->storeFileNamesIn('avatares')

//....
return $table
            ->columns([
                Tables\Columns\ImageColumn::make('avatar')
                    ->disk('avatares')
                    ->label('Fotografía') //no longer ignored
                ,

and in filesystems.php
       'avatares' => [
            'driver' => 'local',
            'root' => storage_path('app/path/to/avatares'),
            'visibility' => 'private',
            'url' => env('APP_URL').'/avatares',
        ],
       'avatares' => [
            'driver' => 'local',
            'root' => storage_path('app/path/to/avatares'),
            'visibility' => 'private',
            'url' => env('APP_URL').'/avatares',
        ],

So, "private" visibility was not causing any problem.

now it finally is working 🎉
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Image not showing
FilamentFFilament / ❓┊help
2y ago
SpatieMediaLibraryImageColumn not showing image.
FilamentFFilament / ❓┊help
2mo ago
ImageColumn is not showing image
FilamentFFilament / ❓┊help
2y ago
Image previews not showing up
FilamentFFilament / ❓┊help
3y ago