我正在尝试创建路线,但出现错误。方法Illuminate \ Routing \ Route :: get不存在。
Route::get('/', function () {
$url = parse_url(URL::all());
$domain = explode('.', $url['host']);
$subdomain = $domain[0];
$name = DB::table('users')->where('name', $subdomain)->get();
dd($name);
// write the rest of your code.
});
找不到此错误