initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Http\Controllers\Support;
use App\Support\AppVersion;
use App\Http\Controllers\Admin\SystemSettingsController;
class Inertia
{
public static function render(string $component, array $props = [])
{
// Add public system settings to every page load to avoid branding flutters
$props['systemSettings'] = SystemSettingsController::getPublicSettingsData();
return [
'component' => $component,
'props' => $props,
'url' => $_SERVER['REQUEST_URI'] ?? '/',
'version' => AppVersion::get(),
];
}
}