app/Http/Requests/Member/UpdateSubscriptionRequest.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()
    {
        $additionalSubscriptionRules = [
            "plan_start_date" =>
                "required|date_format:m/d/Y",
            "account_id" => "required|integer|exists:accounts,id"
        ];
        return array_merge(
            ValidationRules::storeSubscriptionRules(),
            $additionalSubscriptionRules
        );
    }
public function rules ( ) { $ additionalSubscriptionRules = [ " plan_start_date " => " required|date_format:m/d/Y " , " account_id " => " required|integer|exists:accounts,id " ] ; return array_merge ( ValidationRules :: storeSubscriptionRules ( ) , $ additionalSubscriptionRules ) ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// plan start date could be before today's date as we are not allowing on UI to edit start date of ongoing plan