public function rules() : array
    {
        $referral = mb_strtolower($this->request->get('referral') ?? 'profile');

        $resolver = 'rulesFor' . ucfirst($referral);

        return $this->$resolver();
    }
public function rules() : array
    {
        $referral = mb_strtolower($this->request->get('referral') ?? 'profile');

        $resolver = 'rulesFor' . ucfirst($referral);

        return $this->$resolver();
    }
public function rules ( ) : array { $ referral = mb_strtolower ( $ this -> request -> get ( 'referral' ) ?? 'profile' ) ; $ resolver = 'rulesFor' . ucfirst ( $ referral ) ; return $ this -> $ resolver ( ) ; }
Resolves the validation rules for a given referral form.

@return array
Resolves the validation rules for a given referral form .