add notifications logic and add support of both JWT and Sanctum
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Notifications;
|
||||
|
||||
use App\Models\Notification;
|
||||
|
||||
class NotificationCleanupService
|
||||
{
|
||||
public function cleanupExpired(): int
|
||||
{
|
||||
return Notification::deleteExpiredNotifications();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user