PATH:
home
/
lab2454c
/
costbloc.com
/
app
/
Http
/
Requests
/
Admin
<?php namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class AuthUserRequest 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 [ 'email' => 'required|email|exists:users', 'password' => 'required', 'gCaptcha' => isRecaptchaActive() ? 'required|captcha' : 'nullable' ]; } /** * Prepare the data for validation. * * @return void */ protected function prepareForValidation() { $this->merge(['gCaptcha' => $this['g-recaptcha-response']]); } }
[-] AuthUserRequest.php
[edit]
[+]
..
[-] StoreVendorRequest.php
[edit]
[-] StoreUserRequest.php
[edit]
[-] UpdateVendorRequest.php
[edit]