Custom Database Storage

By default Laravel Love uses default application database connection, but it could be changed in config love.storage.database.connection value.

You may export configuration file using the php artisan vendor:publish --tag=love-config command.

This option affects on these models:

  • ReactionType
  • Reaction
  • Reacter
  • Reactant
  • ReactionCounter
  • ReactionTotal

πŸ“˜

This configuration doesn't affect on models with Reacterable & Reactable traits because they are located on the application level.