1
0
forked from metin2/web
web/app/Providers/ViewServiceProvider.php

34 lines
760 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Providers;
use App\View\Composers\HighscoreComposer;
use App\View\Composers\MallComposer;
use App\View\Composers\ThemeComposer;
use Illuminate\Support\Facades;
use Illuminate\Support\ServiceProvider;
class ViewServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
// ...
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
2024-12-31 20:40:58 +02:00
// Main application
Facades\View::composer('layouts.app', ThemeComposer::class);
Facades\View::composer('layouts.app', HighscoreComposer::class);
2024-12-31 20:40:58 +02:00
// Mall
Facades\View::composer('layouts.mall', MallComposer::class);
}
}