handleRequest($request); } /** * Handle for testing - returns response instead of sending. */ public static function handleForTesting(): mixed { $request = Input::capture(); return self::boot()::app()->handle($request); } /** * Get the Boot class to use. * * Prefers App\Boot if it exists, allowing apps to customise * providers, middleware, and exception handling. */ protected static function boot(): string { return class_exists('App\\Boot') ? 'App\\Boot' : Boot::class; } }