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