Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

58
bootstrap/app.php Normal file
View File

@@ -0,0 +1,58 @@
<?php
use App\Http\Middleware\Api\AdminApi;
use App\Http\Middleware\EnsureUserHasPermissions;
use App\Http\Middleware\ImpersonateMiddleware;
use App\Http\Middleware\ProxyMiddleware;
use App\Http\Middleware\SetLocale;
use App\Models\DebugLog;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Laravel\Passport\Http\Middleware\CheckForAnyScope;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__ . '/../routes/web.php',
api: __DIR__ . '/../routes/api.php',
commands: __DIR__ . '/../routes/console.php',
// channels: __DIR__.'/../routes/channels.php',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->append(ProxyMiddleware::class);
$middleware->alias([
'has' => EnsureUserHasPermissions::class,
'scope' => CheckForAnyScope::class,
'api.admin' => AdminApi::class,
]);
$middleware->web([
SetLocale::class,
ImpersonateMiddleware::class,
]);
})
->withEvents(discover: [
__DIR__ . '/../app/Extensions',
__DIR__ . '/../app/Listeners',
])
->withExceptions(function (Exceptions $exceptions) {
$exceptions->report(function (Exception $exception) {
try {
if (!config('settings.debug', false)) {
return;
}
DebugLog::create([
'type' => 'exception',
'context' => [
'message' => $exception->getMessage(),
'file' => $exception->getFile(),
'line' => $exception->getLine(),
'trace' => $exception->getTraceAsString(),
],
]);
} catch (Exception $e) {
// Do nothing
throw $e;
}
});
})->create();

2
bootstrap/cache/.gitignore vendored Executable file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

9
bootstrap/providers.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
return [
App\Providers\AppServiceProvider::class,
App\Providers\SettingsProvider::class,
App\Providers\Filament\AdminPanelProvider::class,
\SocialiteProviders\Manager\ServiceProvider::class,
Paymenter\Extensions\Servers\Proxmox\Providers\ProxmoxServiceProvider::class,
];