Preview: ReviewStoreRequest.php
Size: 648 B
/home/byroehnu/cnggold.com.ng/app/Http/Requests/Frontend/ReviewStoreRequest.php
<?php
namespace App\Http\Requests\Frontend;
use Illuminate\Foundation\Http\FormRequest;
class ReviewStoreRequest 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<mixed>|string>
*/
public function rules(): array
{
return [
'rating' => 'required|min:1|max:5',
'review' => 'required|string|max:1000',
];
}
}
Directory Contents
Dirs: 1 × Files: 6