这是我从电子邮件日志收到的消息。我收到了2次。我检查这个人是来自facebook,但是当我试图重新开始时,这对我来说没问题。
#0 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Routing/Router.php(652): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(214): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#5 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#6 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#7 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#8 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#9 /var/www/html/xxx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#10 /var/www/html/xxx/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#11 {main}
答案 0 :(得分:0)
根据我的经验,当用户访问没有匹配路由的网址时,会发生这种情况。 您没有在routes.php中为访问过的网址定义路由。
Mybe跟随是这样的: 如果你有网址: www.ecample.com/image.gif 和路线
Route::match(['get', 'post'],'/{var}', ['as' =>'homepage','uses' => 'SiteController@index']);
如果图像存在,laravel将显示图像,但如果图像不存在,则路由将在给定url的任何匹配时被触发。如果图像很小且不易察觉,您将不会注意到错误。