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
demo1
demo2
demo3
demo4
demo5
demo6
demo7
demo8
demo9
app/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.