TypeError {#386
  #message: "Argument 1 passed to Symfony\Component\ErrorHandler\Exception\FlattenException::create() must be an instance of Exception, instance of Error given, called in /var/www/baggioimoveis.com.br/app/Exceptions/Handler.php on line 63"
  #code: 0
  #file: "/var/www/baggioimoveis.com.br/vendor/symfony/error-handler/Exception/FlattenException.php"
  #line: 66
  trace: {
    /var/www/baggioimoveis.com.br/vendor/symfony/error-handler/Exception/FlattenException.php:66 {
      Symfony\Component\ErrorHandler\Exception\FlattenException::create(Exception $exception, $statusCode = null, array $headers = []): self …
      ›  */public static function create(\Exception $exception, $statusCode = null, array $headers = []): self{
    }
    /var/www/baggioimoveis.com.br/app/Exceptions/Handler.php:63 {
      App\Exceptions\Handler->sendEmail(Throwable $exception) …
      › try {    $e = FlattenException::create($exception);arguments: {
        $exception: Error {#380 …}
      }
    }
    /var/www/baggioimoveis.com.br/app/Exceptions/Handler.php:43 {
      App\Exceptions\Handler->report(Throwable $exception) …
      › if ($this->shouldReport($exception) and env('APP_ENV') == 'production'){     $this->sendEmail($exception); // sends an email }
      arguments: {
        $exception: Error {#380 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:49 {
      Illuminate\Routing\Pipeline->handleException($passable, Throwable $e) …
      › 
      › $handler->report($e);arguments: {
        $exception: Error {#380 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:172 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › } catch (Throwable $e) {    return $this->handleException($passable, $e);}
      arguments: {
        $passable: Illuminate\Http\Request {#43 …}
        $e: Error {#380 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78 {
      Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
      › ) {    return tap($next($request), function ($response) use ($request) {        if ($this->shouldAddXsrfTokenCookie()) {
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116 {
      Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Request $request, $session, Closure $next) …
      › 
      › $response = $next($request);arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62 {
      Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
      › } else {    return $this->handleStatefulRequest($request, $session, $next);}
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $session: Illuminate\Session\Store {#379 …}
        $next: Closure($passable) {#364 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
      Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
      › {    $response = $next($request);arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
      Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
      › {    return $this->encrypt($next($this->decrypt($request)));}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687 {
      Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
      ›                         );                    });}
      arguments: {
        $destination: Closure($request) {#361 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662 {
      Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
      › return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
      arguments: {
        $route: Illuminate\Routing\Route {#287 …}
        $request: Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628 {
      Illuminate\Routing\Router->dispatchToRoute(Request $request) …
      › {    return $this->runRoute($request, $this->findRoute($request));}
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $route: Illuminate\Routing\Route {#287 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617 {
      Illuminate\Routing\Router->dispatch(Request $request) …
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165 {
      Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › try {    return $destination($passable);} catch (Throwable $e) {
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 {
      Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/fruitcake/laravel-cors/src/HandleCors.php:37 {
      Fruitcake\Cors\HandleCors->handle($request, Closure $next) …
      › if (! $this->shouldRun($request)) {    return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
        $next: Closure($passable) {#324 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      ›                 ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure($request) {#35 …}
      }
    }
    /var/www/baggioimoveis.com.br/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Throwable $e) {
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
      }
    }
    /var/www/baggioimoveis.com.br/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Illuminate\Http\Request {#43 …}
      }
    }
  }
}