ModelNotFoundException {#311
  #model: "App\Document"
  #ids: array:1 [
    0 => "documents_65b24932-23b9-495b-b7e1-0a563d7a217e"
  ]
  #message: "No query results for model [App\Document] documents_65b24932-23b9-495b-b7e1-0a563d7a217e"
  #code: 0
  #file: "/home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
  #line: 312
  trace: {
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:312: {
      : 
      : throw (new ModelNotFoundException)->setModel(
      :     get_class($this->model), $id
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1374: {
      : 
      :     return $this->newQuery()->$method(...$parameters);
      : }
      arguments: {
        $id: "documents_65b24932-23b9-495b-b7e1-0a563d7a217e"
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1386: {
      : {
      :     return (new static)->$method(...$parameters);
      : }
      arguments: {
        $method: "findorfail"
        $parameters: array:1 [ …1]
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/app/Http/Controllers/DocumentsController.php:369: {
      : public function permalink(Request $request,$id,$key){
      :     $document = Document::findorfail($id);
      :     $this->historyStatistic($key, $document,true);
      arguments: {
        $method: "findorfail"
        $parameters: array:1 [ …1]
      }
    }
    App\Http\Controllers\DocumentsController->permalink(): {}
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55: {
      : {
      :     return call_user_func_array([$this, $method], $parameters);
      : }
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:3 [ …3]
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44: {
      : if (method_exists($controller, 'callAction')) {
      :     return $controller->callAction($method, $parameters);
      : }
      arguments: {
        $method: "permalink"
        $parameters: array:3 [ …3]
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203: {
      : return (new ControllerDispatcher($this->container))->dispatch(
      :     $this, $this->getController(), $this->getControllerMethod()
      : );
      arguments: {
        $route: Route {#176 …}
        $controller: DocumentsController {#239 …}
        $method: "permalink"
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160: {
      : if ($this->isControllerAction()) {
      :     return $this->runController();
      : }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Router.php:572: {
      : return $this->prepareResponse(
      :     $request, $route->run()
      : );
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30: {
      : try {
      :     return $destination($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65: {
      : ) {
      :     return $this->addCookieToResponse($request, $next($request));
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64: {
      : 
      : $response = $next($request);
      : 
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37: {
      : {
      :     $response = $next($request);
      : 
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59: {
      : {
      :     return $this->encrypt($next($this->decrypt($request)));
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102: {
      : 
      :     return $pipeline($this->passable);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574: {
      :                         );
      :                     });
      : }
      arguments: {
        $destination: Closure {#266 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Router.php:533: {
      : 
      : $response = $this->runRouteWithinStack($route, $request);
      : 
      arguments: {
        $route: Route {#176 …}
        $request: Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Router.php:511: {
      : 
      :     return $this->dispatchToRoute($request);
      : }
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176: {
      : 
      :     return $this->router->dispatch($request);
      : };
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30: {
      : try {
      :     return $destination($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/barryvdh/laravel-cors/src/HandleCors.php:37: {
      : if (! $this->cors->isCorsRequest($request)) {
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46: {
      : 
      :     return $next($request);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148: {
      : 
      :     return $pipe->{$this->method}(...$parameters);
      : };
      arguments: {
        $request: Request {#38 …}
        $next: Closure {#214 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53: {
      : 
      :     return $callable($passable);
      : } catch (Exception $e) {
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102: {
      : 
      :     return $pipeline($this->passable);
      : }
      arguments: {
        Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151: {
      :                 ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
      :                 ->then($this->dispatchToRouter());
      : }
      arguments: {
        $destination: Closure {#37 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116: {
      : 
      :     $response = $this->sendRequestThroughRouter($request);
      : } catch (Exception $e) {
      arguments: {
        $request: Request {#38 …}
      }
    }
    /home/bas/app_50a1ff38-14f4-437a-b8e5-1d4baafe991f/public/index.php:53: {
      : $response = $kernel->handle(
      :     $request = Illuminate\Http\Request::capture()
      : );
      arguments: {
        $request: Request {#38 …}
      }
    }
  }
}