Propaganistas/Laravel-Phone

Not a bug but feature request - expose the isPossibleNumberWithReason

Closed this issue · 1 comments

Just an idea - a simple wrapper to expose the reasons

I'm hesitant to make this available as a helper method because the method would just be forwarding the call without any added value (and in that case, how about the bunch of other useful methods in libphonenumber?). That's why I made the class macroable: fits any case!

So please go ahead and define this macro in your own codebase:

PhoneNumber::macro('getGeoInfo', function() {
    // ...
});