Skip to content

Commit

Permalink
fix: fix scribe generate (monicahq/chandler#310)
Browse files Browse the repository at this point in the history
fix: fix scribe doc
  • Loading branch information
asbiin committed Mar 31, 2023
1 parent 11f6d8b commit 6e3bbf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e3bbf1

Please sign in to comment.