Add notification action foundation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Notifications;
|
||||
|
||||
use App\Models\NotificationAction;
|
||||
use App\Models\Project;
|
||||
|
||||
class DeleteProjectNotificationAction
|
||||
{
|
||||
public function handle(Project $project, NotificationAction $notificationAction): void
|
||||
{
|
||||
$project->notificationActions()
|
||||
->whereKey($notificationAction->id)
|
||||
->firstOrFail()
|
||||
->delete();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user