Skip to content
Discussion options

You must be logged in to vote

Make your own model with protected $connection = 'mysql' and extends Spatie\MediaLibrary\MediaCollections\Models\Media::class
There is a config for custom properties, only you don't read the documentation

/*
* The fully qualified class name of the media model.
*/
'media_model' => Spatie\MediaLibrary\MediaCollections\Models\Media::class,

Remember, many hours of trial and error can save you 5 minutes of looking at the documentation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hussamitani
Comment options

Answer selected by hussamitani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants