group(function () { Route::get('/', function () { $theme = tenant('tenant_theme'); Theme::uses($theme); $data['tenant'] = tenant('tenant_username'); $theme_uri = theme_helper::get_theme_uri($theme); // dd($themes); return Theme::view('index',['theme_uri'=>$theme_uri]); }); Route::get('/about',function(){ }); Route::middleware(['auth', 'uc-admin'])->group(function () { Route::get('uc-admin', function () { echo "hello admin"; })->name('uc-admin'); }); });