File tree Expand file tree Collapse file tree 3 files changed +293
-313
lines changed
Http/Controllers/Api/Auth Expand file tree Collapse file tree 3 files changed +293
-313
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function __invoke(Request $request): RedirectResponse
6767
6868 do {
6969 $ token = Str::random (128 );
70- } while (UserToken::query ()->where ('token ' , $ token )->doesntExist ());
70+ } while (UserToken::query ()->where ('token ' , $ token )->exists ());
7171
7272 $ user ->tokens ()->create (['token ' => $ token ]);
7373
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ public function boot(): void
3030 {
3131 $ this ->registerPolicies ();
3232
33- $ this ->registerDispensary ();
33+ $ this ->registerSpaRequestGuard ();
3434 }
3535
3636 /**
3737 * @throws \Illuminate\Contracts\Container\BindingResolutionException
3838 */
39- private function registerDispensary (): void
39+ private function registerSpaRequestGuard (): void
4040 {
4141 /** @var AuthManager $authManager */
4242 $ authManager = $ this ->app ->make (AuthManager::class);
You can’t perform that action at this time.
0 commit comments