| Current Path : /home/users/unlimited/www/admin.priyotama.com/app/Http/Requests/Admin/ |
| Current File : /home/users/unlimited/www/admin.priyotama.com/app/Http/Requests/Admin/NotificationUpdateRequest.php |
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Carbon;
/**
* @property int id
* @property string title
* @property string description
* @property string|null image
* @property bool status
* @property Carbon|null created_at
* @property Carbon|null updated_at
* @property string|null tergat
* @property int|null zone_id
*/
class NotificationUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array|string>
*/
public function rules(): array
{
return [
'notification_title' => 'required|max:191',
'description' => 'required|max:1000',
'tergat' => 'required',
];
}
}