public function isInboundEmailToEmailAddressMapToUser() {

        // We map an inbound Mailgun route to a record in the "users" table, by email address
        $mappedRoutes = config('lasallecmsmailgun.inbound_map_mailgun_routes_with_user_email_address');

        foreach ($mappedRoutes as $route => $user) {

            // if "from" email address is the same as the route specified in the config...
            if ($this->request->input('recipient') == $route) {
                return true;
            }
        }

        return false;
    }
public function isInboundEmailToEmailAddressMapToUser() {

        // We map an inbound Mailgun route to a record in the "users" table, by email address
        $mappedRoutes = config('lasallecmsmailgun.inbound_map_mailgun_routes_with_user_email_address');

        foreach ($mappedRoutes as $route => $user) {

            // if "from" email address is the same as the route specified in the config...
            if ($this->request->input('recipient') == $route) {
                return true;
            }
        }

        return false;
    }
public function isInboundEmailToEmailAddressMapToUser ( ) { // We map an inbound Mailgun route to a record in the "users" table, by email address $ mappedRoutes = config ( 'lasallecmsmailgun.inbound_map_mailgun_routes_with_user_email_address' ) ; foreach ( $ mappedRoutes as $ route => $ user ) { // if "from" email address is the same as the route specified in the config... if ( $ this -> request -> input ( 'recipient' ) == $ route ) { return true ; } } return false ; }
Does the recipient's email address map to an email address in the "users" database table?

@return bool
Does the recipient s email address map to an email address in the users database table?