Add sanctum + fortify

This commit is contained in:
2025-10-30 16:53:46 -07:00
parent 5a7f46b75c
commit 531e9f1347
18 changed files with 979 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
@@ -15,4 +16,7 @@ return Application::configure(basePath: dirname(__DIR__))
})
->withExceptions(function (Exceptions $exceptions): void {
//
})
->withMiddleware(function (Middleware $middleware): void {
$middleware->statefulApi();
})->create();

View File

@@ -2,4 +2,5 @@
return [
App\Providers\AppServiceProvider::class,
App\Providers\FortifyServiceProvider::class,
];