I have this one project, that has 3 databases and 1 dynamic page, which takes content from those databases. I need 3 different URLs (url1.test, url2.test, url3.test), each should contain one page, filled with data from assigned database. How can I do that? I tried valet, but can "park" only the whole project.
Here is the code of my controller function.
public function instance ($dbname) {
$json = DB::connection($dbname)->select('select json from config')[0]->json;
$config = json_decode($json, true);
if ($config['status'] == 'enabled')
return view('instance', ['config'=>$config]);
else
return view('blocked');
}```