annotate bootstrap/app.php @ 0:9d7dcd54c677

Initial Commit and package setup
author luka
date Sat, 23 Aug 2025 22:20:51 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
1 <?php
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
2
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
3 use Illuminate\Foundation\Application;
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
4 use Illuminate\Foundation\Configuration\Exceptions;
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
5 use Illuminate\Foundation\Configuration\Middleware;
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
6
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
7 return Application::configure(basePath: dirname(__DIR__))
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
8 ->withRouting(
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
9 web: __DIR__.'/../routes/web.php',
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
10 commands: __DIR__.'/../routes/console.php',
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
11 health: '/up',
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
12 )
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
13 ->withMiddleware(function (Middleware $middleware): void {
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
14 //
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
15 })
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
16 ->withExceptions(function (Exceptions $exceptions): void {
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
17 //
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
18 })->create();