I am building the admission portal in laravel,
I have super admin database which has a schools table with 100 rows, schools table structure 1.id 2.school_name 3.database details
I want to connect to the school database with its database details by its id.
technically 1.I will pass the school id from url 2.it will select that row from school table 3.after selecting the database details of particular school 4.will connect to the school database for further use.
I went through https://laracasts.com/discuss/channels/tips/set-up-dynamic-database-connection-globally http://fideloper.com/laravel-multiple-database-connections but no luck
please help to sort it out.