AH
А в твоём случае как раз велосипед. Думай сам)
Size: a a a
AH
IG
E
Д
Route::domain('{account}.mysite.site')->group(function () {
Route::get('/', function (App\Site $site, $account) {
$res = $site->where("cat", $account)->first();
return view('subdomain', ['name' => $account, 'title' => $res->titlesite, 'text' => $res->textsite]);
});
});
404 Not Found
nginx/1.16.1
Д
Д
Д
E
S
Route::domain('{account}.mysite.site')->group(function () {
Route::get('/', function (App\Site $site, $account) {
$res = $site->where("cat", $account)->first();
return view('subdomain', ['name' => $account, 'title' => $res->titlesite, 'text' => $res->textsite]);
});
});
404 Not Found
nginx/1.16.1
Д
Д
Д
S
BV
D
D
D
BV
BV
D