Method Filament\Forms\Components\SpatieMediaLibraryFileUpload::getUploadedFileUsing does not exist. #3342
-
Hi, I have an error when trying to create a new post and I have this code "SpatieMediaLibraryFileUpload::make('avatar')," in the class PostResource extends Resource. my full code: "class PostResource extends Resource
I did the import correctly: "use Filament\Forms\Components\SpatieMediaLibraryFileUpload;" If I delete it it works works well but I need it as I saw that it easy to upload images with it. my Post model: 'boolean', ]; and I did the migration as it said on the website. Github project: https://github.com/Alex92zz/james-website-fillament |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Alex92zz I've had the same issue. I think you're using Filament V2 while the plugin uses functions that are only available in V3. Please try requiring the V2 version to solve your problem.
|
Beta Was this translation helpful? Give feedback.
Hi @Alex92zz
I've had the same issue. I think you're using Filament V2 while the plugin uses functions that are only available in V3. Please try requiring the V2 version to solve your problem.
composer require filament/spatie-laravel-media-library-plugin:"2.*"