recentpopularlog in

racl101 : belongstomany   1

php - belongsToMany relationship in Laravel across multiple databases - Stack Overflow
Someone figured out how to do a relationship column / property between two models (with pivot table), i.e. belongsToMany where the second model might have a dynamic database connection (i.e. it's not the same each time a query is done). So they figured out howto obtain the database for the current database connection (i.e. the current PHP script execution).
stackoverflow  laravel  laravel5  howto  belongstomany  model  relationship  property  column  between  different  database  connections  example  guide  reference  pivot  table 
may 2018 by racl101

Copy this bookmark:





to read