From df63469cb146dc5ae26b71548c4ad203e2d90de1 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sun, 13 Nov 2022 12:21:05 +0100 Subject: [PATCH] fix: fix scribe generate (monicahq/chandler#310) fix: fix scribe doc --- app/Providers/AppServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 662bd14943d..d806f300c25 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -47,6 +47,9 @@ public function boot() '--force' => true, ]); $user = User::first(); + $user->wasRecentlyCreated = false; + $newToken = $user->createToken('test'); + $user->withAccessToken($newToken->accessToken); app('auth')->guard('sanctum')->setUser($user); app('auth')->shouldUse('sanctum'); // @codeCoverageIgnoreEnd