Skip to content

Commit

Permalink
fix: fix scribe generate on docker image (monicahq/chandler#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Nov 13, 2022
1 parent 2dc2a83 commit 74ccb06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/SetupApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function handle(): void
$this->clearConfig();
$this->symlink();
$this->migrate();
$this->documentation();
$this->cacheConfig();
$this->scout();
$this->documentation();
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;
use Knuckles\Scribe\Scribe;
use Laravel\Sanctum\Sanctum;
use LaravelWebauthn\Facades\Webauthn;

class AppServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -48,7 +47,8 @@ public function boot()
'--force' => true,
]);
$user = User::first();
Sanctum::actingAs($user, ['*']);
app('auth')->guard('sanctum')->setUser($user);
app('auth')->shouldUse('sanctum');
// @codeCoverageIgnoreEnd
});
}
Expand Down

0 comments on commit 74ccb06

Please sign in to comment.