spatie / mailcoach-support

Questions and support for Mailcoach
https://mailcoach.app
31 stars 2 forks source link

There should be setting to specify media table #187

Closed bluelupin closed 4 years ago

bluelupin commented 4 years ago

We are trying to install Mailcoach in an existing Laravel project. This project already has "media" table. There should be a setting to specify a custom table name for media.

freekmurze commented 4 years ago

You can use your own media model: https://docs.spatie.be/laravel-medialibrary/v8/advanced-usage/using-your-own-model/

In your own media model, add a property $table and set it to the table name you want to use.