I got the following error when the app was trying to send Slack notification during a health check.
Please advise
Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Request' not found File "/var/www/php/vendor/pragmarx/health/src/Notifications/HealthStatus.php", line 172 File "/var/www/php/vendor/pragmarx/health/src/Notifications/HealthStatus.php", line 105, in PragmaRX\Health\Notifications\HealthStatus::getMessage File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/Channels/SlackWebhookChannel.php", line 45, in PragmaRX\Health\Notifications\HealthStatus::toSlack File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 113, in Illuminate\Notifications\Channels\SlackWebhookChannel::send File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 89, in Illuminate\Notifications\NotificationSender::sendToNotifiable File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 64, in Illuminate\Notifications\NotificationSender::sendNow File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php", line 35, in Illuminate\Notifications\NotificationSender::send File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php", line 223, in Illuminate\Notifications\ChannelManager::send File "/var/www/php/vendor/pragmarx/health/src/Listeners/NotifyHealthIssue.php", line 42, in Illuminate\Support\Facades\Facade::__callStatic File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Listeners\NotifyHealthIssue::PragmaRX\Health\Listeners\{closure} File "/var/www/php/vendor/pragmarx/health/src/Listeners/NotifyHealthIssue.php", line 45, in Illuminate\Support\Collection::each File "unknown", line unknown, in PragmaRX\Health\Listeners\NotifyHealthIssue::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php", line 379, in call_user_func_array File "/var/www/php/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php", line 209, in Illuminate\Events\Dispatcher::Illuminate\Events\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php", line 476, in Illuminate\Events\Dispatcher::dispatch File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 246, in event File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Support\Resource::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 250, in Illuminate\Support\Collection::each File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 231, in PragmaRX\Health\Support\Resource::sendNotifications File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 190, in PragmaRX\Health\Support\Resource::notify File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 124, in PragmaRX\Health\Support\Resource::check File "/var/www/php/vendor/pragmarx/health/src/Support/Cache.php", line 127, in PragmaRX\Health\Support\ResourceChecker::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 125, in PragmaRX\Health\Support\Cache::remember File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 93, in PragmaRX\Health\Support\ResourceChecker::checkResource File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Support\ResourceChecker::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 94, in Illuminate\Support\Collection::each File "/var/www/php/vendor/pragmarx/health/src/Service.php", line 42, in PragmaRX\Health\Support\ResourceChecker::checkResources File "/var/www/php/vendor/pragmarx/health/src/Service.php", line 65, in PragmaRX\Health\Service::checkResources File "/var/www/php/vendor/pragmarx/health/src/Http/Controllers/Health.php", line 36, in PragmaRX\Health\Service::health File "unknown", line unknown, in PragmaRX\Health\Http\Controllers\Health::check File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Controller.php", line 54, in call_user_func_array File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php", line 45, in Illuminate\Routing\Controller::callAction File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Route.php", line 212, in Illuminate\Routing\ControllerDispatcher::dispatch File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Route.php", line 169, in Illuminate\Routing\Route::runController File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 665, in Illuminate\Routing\Route::run File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 30, in Illuminate\Routing\Router::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 104, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 667, in Illuminate\Pipeline\Pipeline::then File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 642, in Illuminate\Routing\Router::runRouteWithinStack File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 608, in Illuminate\Routing\Router::runRoute File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 597, in Illuminate\Routing\Router::dispatchToRoute File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 176, in Illuminate\Routing\Router::dispatch File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 30, in Illuminate\Foundation\Http\Kernel::Illuminate\Foundation\Http\{closure} File "/var/www/php/vendor/fideloper/proxy/src/TrustProxies.php", line 57, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Fideloper\Proxy\TrustProxies::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", line 31, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\TransformsRequest::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", line 31, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\TransformsRequest::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", line 27, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\ValidatePostSize::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", line 62, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 104, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 151, in Illuminate\Pipeline\Pipeline::then File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 116, in Illuminate\Foundation\Http\Kernel::sendRequestThroughRouter File "/var/www/php/app/Http/Kernel.php", line 88, in Illuminate\Foundation\Http\Kernel::handle File "/var/www/php/public/index.php", line 94, in App\Http\Kernel::handle
I got the following error when the app was trying to send Slack notification during a health check. Please advise
Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Request' not found File "/var/www/php/vendor/pragmarx/health/src/Notifications/HealthStatus.php", line 172 File "/var/www/php/vendor/pragmarx/health/src/Notifications/HealthStatus.php", line 105, in PragmaRX\Health\Notifications\HealthStatus::getMessage File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/Channels/SlackWebhookChannel.php", line 45, in PragmaRX\Health\Notifications\HealthStatus::toSlack File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 113, in Illuminate\Notifications\Channels\SlackWebhookChannel::send File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 89, in Illuminate\Notifications\NotificationSender::sendToNotifiable File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php", line 64, in Illuminate\Notifications\NotificationSender::sendNow File "/var/www/php/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php", line 35, in Illuminate\Notifications\NotificationSender::send File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php", line 223, in Illuminate\Notifications\ChannelManager::send File "/var/www/php/vendor/pragmarx/health/src/Listeners/NotifyHealthIssue.php", line 42, in Illuminate\Support\Facades\Facade::__callStatic File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Listeners\NotifyHealthIssue::PragmaRX\Health\Listeners\{closure} File "/var/www/php/vendor/pragmarx/health/src/Listeners/NotifyHealthIssue.php", line 45, in Illuminate\Support\Collection::each File "unknown", line unknown, in PragmaRX\Health\Listeners\NotifyHealthIssue::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php", line 379, in call_user_func_array File "/var/www/php/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php", line 209, in Illuminate\Events\Dispatcher::Illuminate\Events\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php", line 476, in Illuminate\Events\Dispatcher::dispatch File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 246, in event File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Support\Resource::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 250, in Illuminate\Support\Collection::each File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 231, in PragmaRX\Health\Support\Resource::sendNotifications File "/var/www/php/vendor/pragmarx/health/src/Support/Resource.php", line 190, in PragmaRX\Health\Support\Resource::notify File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 124, in PragmaRX\Health\Support\Resource::check File "/var/www/php/vendor/pragmarx/health/src/Support/Cache.php", line 127, in PragmaRX\Health\Support\ResourceChecker::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 125, in PragmaRX\Health\Support\Cache::remember File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 93, in PragmaRX\Health\Support\ResourceChecker::checkResource File "/var/www/php/vendor/laravel/framework/src/Illuminate/Support/Collection.php", line 397, in PragmaRX\Health\Support\ResourceChecker::PragmaRX\Health\Support\{closure} File "/var/www/php/vendor/pragmarx/health/src/Support/ResourceChecker.php", line 94, in Illuminate\Support\Collection::each File "/var/www/php/vendor/pragmarx/health/src/Service.php", line 42, in PragmaRX\Health\Support\ResourceChecker::checkResources File "/var/www/php/vendor/pragmarx/health/src/Service.php", line 65, in PragmaRX\Health\Service::checkResources File "/var/www/php/vendor/pragmarx/health/src/Http/Controllers/Health.php", line 36, in PragmaRX\Health\Service::health File "unknown", line unknown, in PragmaRX\Health\Http\Controllers\Health::check File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Controller.php", line 54, in call_user_func_array File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php", line 45, in Illuminate\Routing\Controller::callAction File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Route.php", line 212, in Illuminate\Routing\ControllerDispatcher::dispatch File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Route.php", line 169, in Illuminate\Routing\Route::runController File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 665, in Illuminate\Routing\Route::run File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 30, in Illuminate\Routing\Router::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 104, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 667, in Illuminate\Pipeline\Pipeline::then File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 642, in Illuminate\Routing\Router::runRouteWithinStack File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 608, in Illuminate\Routing\Router::runRoute File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Router.php", line 597, in Illuminate\Routing\Router::dispatchToRoute File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 176, in Illuminate\Routing\Router::dispatch File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 30, in Illuminate\Foundation\Http\Kernel::Illuminate\Foundation\Http\{closure} File "/var/www/php/vendor/fideloper/proxy/src/TrustProxies.php", line 57, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Fideloper\Proxy\TrustProxies::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", line 31, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\TransformsRequest::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", line 31, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\TransformsRequest::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", line 27, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\ValidatePostSize::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", line 62, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 151, in Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::handle File "/var/www/php/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", line 53, in Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", line 104, in Illuminate\Routing\Pipeline::Illuminate\Routing\{closure} File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 151, in Illuminate\Pipeline\Pipeline::then File "/var/www/php/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", line 116, in Illuminate\Foundation\Http\Kernel::sendRequestThroughRouter File "/var/www/php/app/Http/Kernel.php", line 88, in Illuminate\Foundation\Http\Kernel::handle File "/var/www/php/public/index.php", line 94, in App\Http\Kernel::handle