diff --git a/src/MongodbPassportServiceProvider.php b/src/MongodbPassportServiceProvider.php index 189ef55..0890ce5 100644 --- a/src/MongodbPassportServiceProvider.php +++ b/src/MongodbPassportServiceProvider.php @@ -32,5 +32,9 @@ public function register() $this->app->extend(PassportClientCommand::class, function () { return new ClientCommand(); }); + + $this->app->bind(PassportTokenRepository::class, function () { + return $this->app->make(TokenRepository::class); + }); } } diff --git a/src/Passport/TokenRepository.php b/src/Passport/TokenRepository.php new file mode 100644 index 0000000..21fd360 --- /dev/null +++ b/src/Passport/TokenRepository.php @@ -0,0 +1,21 @@ +save(); + } + +}