Changeset View
Changeset View
Standalone View
Standalone View
src/routes/web.php
<?php | <?php | ||||
/* | |||||
|-------------------------------------------------------------------------- | |||||
| Web Routes | |||||
|-------------------------------------------------------------------------- | |||||
| | |||||
| Here is where you can register web routes for your application. These | |||||
| routes are loaded by the RouteServiceProvider within a group which | |||||
| contains the "web" middleware group. Now create something great! | |||||
| | |||||
*/ | |||||
// We can handle every URL with the default action because | // We can handle every URL with the default action because | ||||
// we have client-side router (including 404 error handler). | // we have client-side router (including 404 error handler). | ||||
// This way we don't have to define any "deep link" routes here. | // This way we don't have to define any "deep link" routes here. | ||||
Route::group( | Route::group( | ||||
[ | [ | ||||
//'domain' => \config('app.domain'), | //'domain' => \config('app.domain'), | ||||
], | ], | ||||
function () { | function () { | ||||
Route::fallback( | Route::fallback( | ||||
function () { | function () { | ||||
return view('root')->with('env', \App\Utils::uiEnv()); | $env = \App\Utils::uiEnv(); | ||||
return view($env['view'])->with('env', $env); | |||||
} | } | ||||
); | ); | ||||
} | } | ||||
); | ); |