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

related tags

between  column  connections  database  different  example  guide  howto  laravel  laravel5  model  pivot  property  reference  relationship  stackoverflow  table 

Copy this bookmark:



description:


tags: