app/Http/Requests/PersonaldetailValidator.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name'=>'required',
            'role'=>'required',
            'gender'=>'required',
            'dob'=>'required',
            'mobileno'=>'required',
            'email'=>'required',
            'panno'=>'required',
            'permanent_address'=>'required',
            'temporary_address'=>'required',
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'role' => 'required' , 'gender' => 'required' , 'dob' => 'required' , 'mobileno' => 'required' , 'email' => 'required' , 'panno' => 'required' , 'permanent_address' => 'required' , 'temporary_address' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .