#1 - project skeleton

This commit is contained in:
Adrian Hopek
2022-01-10 12:19:04 +01:00
parent 683b2367ea
commit d4f522f9d8
90 changed files with 25978 additions and 1 deletions

17
config/sanctum.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
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) : "",
))),
"guard" => ["web"],
"expiration" => null,
"middleware" => [
"verify_csrf_token" => Toby\Http\Middleware\VerifyCsrfToken::class,
"encrypt_cookies" => Toby\Http\Middleware\EncryptCookies::class,
],
];