phpvms/app/Http/Requests/Acars/CommentRequest.php
Nabeel S b06287da23
Stricter checks on ACARS API data (#451)
* Stricter checks on ACARS API data

* More checks
2019-12-02 18:27:58 -05:00

19 lines
307 B
PHP

<?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
class CommentRequest extends FormRequest
{
public function rules(): array
{
$rules = [
'comment' => 'required',
'created_at' => 'sometimes|date',
];
return $rules;
}
}