cms/bootstrap/app.php
Funky Waddle 37ed997989 feat(cms): initialize Laravel project structure and core CMS files
- Added standard Laravel directory structure and configuration.

- Included Svelte and Tailwind configuration for the admin interface.

- Added core PHPUnit and testing scripts.
2026-04-13 12:48:06 -05:00

28 lines
924 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->append(\App\Http\Middleware\SetThemeNamespace::class);
$middleware->append(\App\Http\Middleware\TrackAnalytics::class);
$middleware->append(\App\Http\Middleware\SetLocaleMiddleware::class);
$middleware->alias([
'sw.auth' => \App\Http\Middleware\SiteWeaverAuth::class,
]);
$middleware->validateCsrfTokens(except: [
'loom/*',
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();