diff --git a/app/Notifications/AcceptanceItemAcceptedNotification.php b/app/Notifications/AcceptanceItemAcceptedNotification.php index 5ef940918f0e..b6127e985c95 100644 --- a/app/Notifications/AcceptanceItemAcceptedNotification.php +++ b/app/Notifications/AcceptanceItemAcceptedNotification.php @@ -5,12 +5,13 @@ use AllowDynamicProperties; use App\Models\Setting; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class AcceptanceItemAcceptedNotification extends Notification +class AcceptanceItemAcceptedNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/AcceptanceItemAcceptedToUserNotification.php b/app/Notifications/AcceptanceItemAcceptedToUserNotification.php index 865539b303ee..79f5092f6521 100644 --- a/app/Notifications/AcceptanceItemAcceptedToUserNotification.php +++ b/app/Notifications/AcceptanceItemAcceptedToUserNotification.php @@ -6,12 +6,13 @@ use App\Helpers\Helper; use App\Models\Setting; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class AcceptanceItemAcceptedToUserNotification extends Notification +class AcceptanceItemAcceptedToUserNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/AcceptanceItemDeclinedNotification.php b/app/Notifications/AcceptanceItemDeclinedNotification.php index 6c585893b995..ce89400ad012 100644 --- a/app/Notifications/AcceptanceItemDeclinedNotification.php +++ b/app/Notifications/AcceptanceItemDeclinedNotification.php @@ -4,12 +4,13 @@ use App\Models\Setting; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class AcceptanceItemDeclinedNotification extends Notification +class AcceptanceItemDeclinedNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/AuditNotification.php b/app/Notifications/AuditNotification.php index 33b35e7ed4f2..12f773a87a7f 100644 --- a/app/Notifications/AuditNotification.php +++ b/app/Notifications/AuditNotification.php @@ -5,6 +5,7 @@ use AllowDynamicProperties; use App\Models\Setting; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class AuditNotification extends Notification +class AuditNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckinAccessoryNotification.php b/app/Notifications/CheckinAccessoryNotification.php index 37ee8c351054..b4e89c6e3061 100644 --- a/app/Notifications/CheckinAccessoryNotification.php +++ b/app/Notifications/CheckinAccessoryNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckinAccessoryNotification extends Notification +class CheckinAccessoryNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckinAssetNotification.php b/app/Notifications/CheckinAssetNotification.php index 49ae88015a9f..14e53e7d626c 100644 --- a/app/Notifications/CheckinAssetNotification.php +++ b/app/Notifications/CheckinAssetNotification.php @@ -7,6 +7,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -21,7 +22,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckinAssetNotification extends Notification +class CheckinAssetNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckinComponentNotification.php b/app/Notifications/CheckinComponentNotification.php index 858d35bb63a2..f8668ece1cc7 100644 --- a/app/Notifications/CheckinComponentNotification.php +++ b/app/Notifications/CheckinComponentNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckinComponentNotification extends Notification +class CheckinComponentNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckinLicenseSeatNotification.php b/app/Notifications/CheckinLicenseSeatNotification.php index 7bafa53ee9cc..382dcf3359ff 100644 --- a/app/Notifications/CheckinLicenseSeatNotification.php +++ b/app/Notifications/CheckinLicenseSeatNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckinLicenseSeatNotification extends Notification +class CheckinLicenseSeatNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckoutAccessoryNotification.php b/app/Notifications/CheckoutAccessoryNotification.php index 81f1d6f49bff..28e8d9f6faa4 100644 --- a/app/Notifications/CheckoutAccessoryNotification.php +++ b/app/Notifications/CheckoutAccessoryNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -21,7 +22,7 @@ use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class CheckoutAccessoryNotification extends Notification +class CheckoutAccessoryNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckoutAssetNotification.php b/app/Notifications/CheckoutAssetNotification.php index fbd4a931bf8b..36826c820d0f 100644 --- a/app/Notifications/CheckoutAssetNotification.php +++ b/app/Notifications/CheckoutAssetNotification.php @@ -7,6 +7,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -21,7 +22,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckoutAssetNotification extends Notification +class CheckoutAssetNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckoutComponentNotification.php b/app/Notifications/CheckoutComponentNotification.php index 76f0d529de9e..fd15bdb015b6 100644 --- a/app/Notifications/CheckoutComponentNotification.php +++ b/app/Notifications/CheckoutComponentNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckoutComponentNotification extends Notification +class CheckoutComponentNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckoutConsumableNotification.php b/app/Notifications/CheckoutConsumableNotification.php index 404a17ab90e2..4f3c231d3fc9 100644 --- a/app/Notifications/CheckoutConsumableNotification.php +++ b/app/Notifications/CheckoutConsumableNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckoutConsumableNotification extends Notification +class CheckoutConsumableNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CheckoutLicenseSeatNotification.php b/app/Notifications/CheckoutLicenseSeatNotification.php index ded193937778..23c28588489c 100644 --- a/app/Notifications/CheckoutLicenseSeatNotification.php +++ b/app/Notifications/CheckoutLicenseSeatNotification.php @@ -6,6 +6,7 @@ use App\Models\Setting; use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Channels\SlackWebhookChannel; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -19,7 +20,7 @@ use NotificationChannels\MicrosoftTeams\MicrosoftTeamsMessage; #[AllowDynamicProperties] -class CheckoutLicenseSeatNotification extends Notification +class CheckoutLicenseSeatNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/CurrentInventory.php b/app/Notifications/CurrentInventory.php index 24a6d9679495..369a05a6a19e 100644 --- a/app/Notifications/CurrentInventory.php +++ b/app/Notifications/CurrentInventory.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class CurrentInventory extends Notification +class CurrentInventory extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/ExpectedCheckinAdminNotification.php b/app/Notifications/ExpectedCheckinAdminNotification.php index ad4089e5a769..45ba6bb33396 100644 --- a/app/Notifications/ExpectedCheckinAdminNotification.php +++ b/app/Notifications/ExpectedCheckinAdminNotification.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class ExpectedCheckinAdminNotification extends Notification +class ExpectedCheckinAdminNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/ExpectedCheckinNotification.php b/app/Notifications/ExpectedCheckinNotification.php index 7b8d44677448..4b2c5915a99e 100644 --- a/app/Notifications/ExpectedCheckinNotification.php +++ b/app/Notifications/ExpectedCheckinNotification.php @@ -5,12 +5,13 @@ use App\Helpers\Helper; use Carbon\Carbon; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class ExpectedCheckinNotification extends Notification +class ExpectedCheckinNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/ExpiringAssetsNotification.php b/app/Notifications/ExpiringAssetsNotification.php index 0236eb17e394..eb763215e137 100644 --- a/app/Notifications/ExpiringAssetsNotification.php +++ b/app/Notifications/ExpiringAssetsNotification.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class ExpiringAssetsNotification extends Notification +class ExpiringAssetsNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/ExpiringLicenseNotification.php b/app/Notifications/ExpiringLicenseNotification.php index 4453ff3b51e8..4a377bc2521a 100644 --- a/app/Notifications/ExpiringLicenseNotification.php +++ b/app/Notifications/ExpiringLicenseNotification.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class ExpiringLicenseNotification extends Notification +class ExpiringLicenseNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/FirstAdminNotification.php b/app/Notifications/FirstAdminNotification.php index 038571a1be2b..908f20ec2fb1 100644 --- a/app/Notifications/FirstAdminNotification.php +++ b/app/Notifications/FirstAdminNotification.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class FirstAdminNotification extends Notification +class FirstAdminNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/InventoryAlert.php b/app/Notifications/InventoryAlert.php index 5d4baa6bb35e..a32b3a4f3ed2 100644 --- a/app/Notifications/InventoryAlert.php +++ b/app/Notifications/InventoryAlert.php @@ -4,12 +4,13 @@ use AllowDynamicProperties; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class InventoryAlert extends Notification +class InventoryAlert extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/MailTest.php b/app/Notifications/MailTest.php index 104329607a2b..6b6d7d7e1e56 100644 --- a/app/Notifications/MailTest.php +++ b/app/Notifications/MailTest.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class MailTest extends Notification +class MailTest extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/RequestAssetCancelation.php b/app/Notifications/RequestAssetCancelation.php index f1fba4587296..9239d4049b62 100644 --- a/app/Notifications/RequestAssetCancelation.php +++ b/app/Notifications/RequestAssetCancelation.php @@ -4,6 +4,7 @@ use App\Helpers\Helper; use App\Models\Setting; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; @@ -11,7 +12,7 @@ use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class RequestAssetCancelation extends Notification +class RequestAssetCancelation extends Notification implements ShouldQueue { private $params; diff --git a/app/Notifications/RequestAssetNotification.php b/app/Notifications/RequestAssetNotification.php index 0a95ca74131e..008e2f71a989 100644 --- a/app/Notifications/RequestAssetNotification.php +++ b/app/Notifications/RequestAssetNotification.php @@ -4,13 +4,14 @@ use App\Helpers\Helper; use App\Models\Setting; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class RequestAssetNotification extends Notification +class RequestAssetNotification extends Notification implements ShouldQueue { private $params; diff --git a/app/Notifications/SendUpcomingAuditNotification.php b/app/Notifications/SendUpcomingAuditNotification.php index e9c0d93b1f6d..6efa7f39d7a4 100644 --- a/app/Notifications/SendUpcomingAuditNotification.php +++ b/app/Notifications/SendUpcomingAuditNotification.php @@ -3,12 +3,13 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class SendUpcomingAuditNotification extends Notification +class SendUpcomingAuditNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/app/Notifications/WelcomeNotification.php b/app/Notifications/WelcomeNotification.php index 76c070246e4f..2420fdc37f98 100644 --- a/app/Notifications/WelcomeNotification.php +++ b/app/Notifications/WelcomeNotification.php @@ -4,13 +4,14 @@ use App\Models\User; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Password; use Symfony\Component\Mime\Email; #[AllowDynamicProperties] -class WelcomeNotification extends Notification +class WelcomeNotification extends Notification implements ShouldQueue { use Queueable; diff --git a/config/queue.php b/config/queue.php index 25ea5a819352..02f54c3c118a 100644 --- a/config/queue.php +++ b/config/queue.php @@ -13,7 +13,7 @@ | */ - 'default' => env('QUEUE_CONNECTION', 'sync'), + 'default' => env('QUEUE_CONNECTION', 'background'), /* |--------------------------------------------------------------------------