phpvms/app/Http/Requests/Acars/CommentRequest.php

22 lines
339 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Acars;
use App\Interfaces\FormRequest;
/**
2018-08-27 02:50:08 +08:00
* Class CommentRequest
*/
class CommentRequest extends FormRequest
{
2018-08-27 02:50:08 +08:00
public function rules(): array
{
$rules = [
'comment' => 'required',
'created_at' => 'nullable|date',
];
return $rules;
}
}