this repo has no description
at master 680 B view raw
1<?php 2 3use Illuminate\Foundation\Application; 4use Illuminate\Foundation\Configuration\Exceptions; 5use Illuminate\Foundation\Configuration\Middleware; 6 7return Application::configure(basePath: dirname(__DIR__)) 8 ->withRouting( 9 web: __DIR__ . '/../routes/web.php', 10 api: __DIR__ . '/../routes/api.php', 11 commands: __DIR__ . '/../routes/console.php', 12 health: '/up', 13 ) 14 ->withMiddleware(function (Middleware $middleware): void { 15 $middleware->statefulApi(); 16 $middleware->append(\Illuminate\Session\Middleware\StartSession::class); 17 }) 18 ->withExceptions(function (Exceptions $exceptions): void { 19 // 20 })->create();