路由方法不存在

我正在尝试创建路线,但出现错误。方法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.
});

找不到此错误

yaoyang111 回答:路由方法不存在

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3150731.html

大家都在问