- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
28 lines
924 B
PHP
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();
|