protected function isAllowed() : bool
    {
        return $this->request->has('referral')
            && in_array($this->request->get('referral'), $this->allowedReferral);
    }
protected function isAllowed() : bool
    {
        return $this->request->has('referral')
            && in_array($this->request->get('referral'), $this->allowedReferral);
    }
protected function isAllowed ( ) : bool { return $ this -> request -> has ( 'referral' ) && in_array ( $ this -> request -> get ( 'referral' ) , $ this -> allowedReferral ) ; }
Checks whether the referral form is allowed to make the incoming request.

@return bool
Checks whether the referral form is allowed to make the incoming request .