© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
bionary

Spatie Media Library breaks with ->disabled()

There appears to be a bug when using Spatie Media Library with the
->disabled()
->disabled()
method.
Saving the record throws an error, because it is trying to save the media to a column on the model (rather than in the media table)

 SpatieMediaLibraryFileUpload::make("my_download")
   ->disk('media')
   ->disabled(fn() :bool => false),
 SpatieMediaLibraryFileUpload::make("my_download")
   ->disk('media')
   ->disabled(fn() :bool => false),

This yields error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'my_download' in 'field list'

Once
->disabled()
->disabled()
is removed the plugin works as intended.

plugin v. 3.2.93
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Spatie Media Library
FilamentFFilament / ❓┊help
10mo ago
Spatie Media Library
FilamentFFilament / ❓┊help
14mo ago
Repeater with Spatie Media Library
FilamentFFilament / ❓┊help
6mo ago
issue with Spatie Media Library
FilamentFFilament / ❓┊help
3y ago