Path : /var/www/html/solarwindia/app/Http/Requests/ |
Current File : /var/www/html/solarwindia/app/Http/Requests/SubmitOTPRequest.php |
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SubmitOTPRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'otp' => 'required|regex:/^([0-9\s\-\+\(\)]*)$/|min:5|max:5' ]; } }