Skip to content

Commit

Permalink
Use callAfterResolving (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdullahsari committed Jan 24, 2023
1 parent aa47044 commit bec928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhoneServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function register()

$this->app->alias('libphonenumber', PhoneNumberUtil::class);

$this->app->afterResolving('validator', static function (Factory $validator) {
$this->callAfterResolving('validator', static function (Factory $validator) {
$validator->extendDependent('phone', Validation\Phone::class . '@validate');
});

Expand Down

0 comments on commit bec928b

Please sign in to comment.