Add notification action foundation
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions\Notifications;
|
||||
|
||||
use App\Models\NotificationAction;
|
||||
use App\Models\Project;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
class ListProjectNotificationActions
|
||||
{
|
||||
/**
|
||||
* @return Collection<int, NotificationAction>
|
||||
*/
|
||||
public function handle(Project $project): Collection
|
||||
{
|
||||
return $project->notificationActions()->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user