Exception {#300
  #message: "lien de partage expiré"
  #code: 404
  #file: "/home/app/repo/app/Http/Controllers/ShareDocumentController.php"
  #line: 24
  trace: {
    /home/app/repo/app/Http/Controllers/ShareDocumentController.php:24 {$share = SharedDocument::where('token',$token)->firstorfail();if($share->isExpired()) throw new \Exception("lien de partage expiré", 404);}
    App\Http\Controllers\ShareDocumentController->download() {}
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 {{    return call_user_func_array([$this, $method], $parameters);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 {return (new ControllerDispatcher($this->container))->dispatch(    $this, $this->getController(), $this->getControllerMethod());
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:572 {return $this->prepareResponse(    $request, $route->run());
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/app/repo/app/Http/Middleware/ForceHttps.php:22 {
      › 
      ›   return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 {) {    return $this->addCookieToResponse($request, $next($request));}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 {
      › 
      › $response = $next($request);}
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);}
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 {{    return $this->encrypt($next($this->decrypt($request)));}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 {                        );                    });}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:533 {
      › 
      › $response = $this->runRouteWithinStack($route, $request);}
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Router.php:511 {
      › 
      ›     return $this->dispatchToRoute($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/barryvdh/laravel-cors/src/HandleCors.php:37 {if (! $this->cors->isCorsRequest($request)) {    return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 {
      › 
      ›     return $next($request);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 {
      › 
      ›     return $pipe->{$this->method}(...$parameters);};
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 {
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
    }
    /home/app/repo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /home/app/repo/public/index.php:53 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
    }
  }
}