[9.x] Update sanctum config file (#5820)

* Update sanctum config file

* Update composer.json

Co-authored-by: suyaqi <suyaqi@wy.net>
Co-authored-by: Dries Vints <dries@vints.io>
This commit is contained in:
suyar
2022-02-17 23:16:40 +08:00
committed by GitHub
parent 4a6229aa65
commit 871ff9e65f
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
<?php
use Laravel\Sanctum\Sanctum;
return [
/*
@@ -16,7 +18,7 @@ return [
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
'%s%s',
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
env('APP_URL') ? ','.parse_url(env('APP_URL'), PHP_URL_HOST) : ''
Sanctum::currentApplicationUrlWithPort()
))),
/*