misc_pterodactyl-panel/app/Http/ViewComposers/AssetComposer.php
2022-11-25 13:25:03 -07:00

23 lines
577 B
PHP

<?php
namespace Pterodactyl\Http\ViewComposers;
use Illuminate\View\View;
class AssetComposer
{
/**
* Provide access to the asset service in the views.
*/
public function compose(View $view): void
{
$view->with('siteConfiguration', [
'name' => config('app.name') ?? 'Pterodactyl',
'locale' => config('app.locale') ?? 'en',
'recaptcha' => [
'enabled' => config('recaptcha.enabled', false),
'siteKey' => config('recaptcha.website_key') ?? '',
],
]);
}
}