fixed notification system and added a new tenant notifications receipt table to track read status and filter messages by scope.
This commit is contained in:
22
app/Http/Requests/Tenant/NotificationMarkRequest.php
Normal file
22
app/Http/Requests/Tenant/NotificationMarkRequest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Tenant;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class NotificationMarkRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'ids' => ['required', 'array'],
|
||||
'ids.*' => ['integer', 'min:1'],
|
||||
'status' => ['required', 'in:read,dismissed'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user