For the preview purpose, we use URL query ?demo=demo2 to enable the other demos preview without modifying the Laravel routes.
See the example preview URL https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/multi-demo/build?demo=demo2.
The default build command will build the assets for demo1.
npm run dev npm run dev --demo2 demo1demo2demo3demo4demo5demo6demo7demo8demo9app/Providers/AppServiceProvider.php and set the demo id in using the function below.
$theme->setDemo('demo2'); false. The config can be found in this file:
config/global/general.php
'use_demo' => false, public/demo1/* to public/ folder.