Database Connection configuration #2698
-
Basically we are splitting our Laravel App into multiple Databases. We need to define the db connection in the Model. Please see the following documentation: https://medium.com/teknomuslim/how-to-run-laravel-using-multiple-database-connections-d7e8dcb7ed2a When I added Can you add this option to the config/media-library.php? Because this can be published in our src config files. Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Make your own model with laravel-medialibrary/config/media-library.php Lines 28 to 31 in a6634fa
|
Beta Was this translation helpful? Give feedback.
Make your own model with
protected $connection = 'mysql'
and extendsSpatie\MediaLibrary\MediaCollections\Models\Media::class
There is a config for custom properties, only you don't read the documentation
laravel-medialibrary/config/media-library.php
Lines 28 to 31 in a6634fa