Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
fix: fix scribe generate (#310)
Browse files Browse the repository at this point in the history
fix: fix scribe doc
  • Loading branch information
asbiin committed Nov 13, 2022
1 parent 31cbe70 commit bb61e1b
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 bb61e1b

Please sign in to comment.