mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +02:00

* update composer.lock * run pint * fix phpstan * update migrations (sqlite `dropForeign`) * fix migrations * Reset these back for now * Alphabetize the rules * run `php artisan filament:upgrade` --------- Co-authored-by: Lance Pioch <git@lance.sh>
28 lines
851 B
PHP
28 lines
851 B
PHP
<?php
|
|
|
|
namespace App\Http\ViewComposers;
|
|
|
|
use App\Services\Helpers\AssetHashService;
|
|
use Illuminate\View\View;
|
|
|
|
readonly class AssetComposer
|
|
{
|
|
public function __construct(private AssetHashService $assetHashService) {}
|
|
|
|
public function compose(View $view): void
|
|
{
|
|
$view->with('asset', $this->assetHashService);
|
|
|
|
$view->with('siteConfiguration', [
|
|
'name' => config('app.name', 'Panel'),
|
|
'locale' => config('app.locale') ?? 'en',
|
|
'recaptcha' => [
|
|
'enabled' => config('turnstile.turnstile_enabled', false),
|
|
'siteKey' => config('turnstile.turnstile_site_key') ?? '',
|
|
],
|
|
'usesSyncDriver' => config('queue.default') === 'sync',
|
|
'serverDescriptionsEditable' => config('panel.editable_server_descriptions'),
|
|
]);
|
|
}
|
|
}
|