forked from admin/services_core
25 lines
590 B
PHP
25 lines
590 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Notification;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class IndexNotificationRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'search' => ['nullable', 'string', 'max:255'],
|
|
'status' => ['nullable', 'string', 'max:30'],
|
|
'unread' => ['nullable', 'boolean'],
|
|
'page' => ['nullable', 'integer', 'min:1'],
|
|
'per_page' => ['nullable', 'integer', 'min:1', 'max:100'],
|
|
];
|
|
}
|
|
}
|