app/Http/Requests/SchoolRequest.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 [
            'user.title',
            'user.fname' => 'required',
            'user.lname' => 'required',
            'user.mobile' => 'required|numeric|min:10',
            'user.email' => 'required|max:255',
            'user.gender',
            'user.dob',
            'user.address1',
            'user.address2',
            'user.city_id',
            'user.pin_code',
        ];
    }
public function rules ( ) { return [ 'user.title' , 'user.fname' => 'required' , 'user.lname' => 'required' , 'user.mobile' => 'required|numeric|min:10' , 'user.email' => 'required|max:255' , 'user.gender' , 'user.dob' , 'user.address1' , 'user.address2' , 'user.city_id' , 'user.pin_code' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .