app/Api/V1/Requests/VendorSignUpRequest.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 [
            'username' => 'bail|required|unique:users',
            'email' => 'required|email|unique:users',
            'password' => 'required|min:6',
            'business_name' => 'required',
            'bpp_id' => 'string|unique:vendors',
            'rc_number' => 'required|unique:vendors',
            'tax_identification_number' => 'required|unique:vendors',
            'phone' => 'required|min:8|max:20|unique:users',
            'business_description' => 'required',
            'state_id' => 'required',
            'city_id' => 'required',
            'address_line_1' => 'required',
            'email1' => 'email|unique:vendors,email',
            'website' => 'url',
            'first_name' => 'required|max:255',
            'last_name' => 'required|max:255',
            'frontend_url' => 'required|string',
        ];
	}
public function rules ( ) { return [ 'username' => 'bail|required|unique:users' , 'email' => 'required|email|unique:users' , 'password' => 'required|min:6' , 'business_name' => 'required' , 'bpp_id' => 'string|unique:vendors' , 'rc_number' => 'required|unique:vendors' , 'tax_identification_number' => 'required|unique:vendors' , 'phone' => 'required|min:8|max:20|unique:users' , 'business_description' => 'required' , 'state_id' => 'required' , 'city_id' => 'required' , 'address_line_1' => 'required' , 'email1' => 'email|unique:vendors,email' , 'website' => 'url' , 'first_name' => 'required|max:255' , 'last_name' => 'required|max:255' , 'frontend_url' => 'required|string' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//		    users table data