Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sarra_bad's avatar

image don't display in filament

Hey all, I can't fixed this problem . Image of post don't showing after i used package filament-spatie-media-library it still appears in this error when delete or edit post

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'finalechabaka.media' doesn't exist SELECT * FROM media WHERE media.model_type = App\Models\Post AND media.`m

0 likes
7 replies
jlrdw's avatar

@sarra_bad start checking other things:

  • storage link
  • url to image is correct
  • try displaying in a blade file to see if it displays
  • what does your network tab show
  • etc
1 like
sarra_bad's avatar

@jlrdw I did all , the exact problem in table media ,it doesn't exist despite I didn't use it

my code

FileUpload::make('image')->image()
->directory('posts'),
 ImageColumn::make('image'),

And i removed this with package filament-spatie-media-library

SpatieMediaLibraryFileUpload::make('image')
sarra_bad's avatar

I fixed it by adding this to my deployment script:

cd public
rm storage
cd ..
php artisan storage:link
2 likes

Please or to participate in this conversation.