app/Http/Requests/ApiRegisterCustomer.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 [
            'first_name' => 'required|string',
            'last_name' => 'required|string',
            'mobile_no' => 'required|numeric|unique:customers|digits:10',
            'password' => 'required|string',
            'promo_code' => 'string|unique:customers'
        ];
    }
public function rules ( ) { return [ 'first_name' => 'required|string' , 'last_name' => 'required|string' , 'mobile_no' => 'required|numeric|unique:customers|digits:10' , 'password' => 'required|string' , 'promo_code' => 'string|unique:customers' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .