Preview: PostCommentRequest.php
Size: 723 B
/home/byroehnu/cnggold.com.ng/app/Http/Requests/Frontend/PostCommentRequest.php
<?php
namespace App\Http\Requests\Frontend;
use Illuminate\Foundation\Http\FormRequest;
class PostCommentRequest 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, \Illuminate\Contracts\Validation\ValidationRule|array|string>
*/
public function rules(): array
{
return [
'full_name' => 'required|max:255',
'email' => 'required|max:100|email',
'website' => 'nullable|max:100|url',
'comment' => 'required',
];
}
}
Directory Contents
Dirs: 1 × Files: 6