1
0
forked from metin2/web

Added older versions of the classic theme.

This commit is contained in:
2024-12-31 20:21:54 +02:00
parent 561ab7ea97
commit 744e55e385
16 changed files with 214 additions and 22 deletions

View File

@ -3,6 +3,7 @@
namespace App\Providers;
use App\View\Composers\MallComposer;
use App\View\Composers\ThemeComposer;
use Illuminate\Support\Facades;
use Illuminate\Support\ServiceProvider;
@ -21,6 +22,7 @@ class ViewServiceProvider extends ServiceProvider
*/
public function boot(): void
{
Facades\View::composer('layouts.app', ThemeComposer::class);
Facades\View::composer('layouts.mall', MallComposer::class);
}
}

View File

@ -0,0 +1,17 @@
<?php
namespace App\View\Composers;
use Illuminate\View\View;
class ThemeComposer
{
/**
* Bind data to the view.
*/
public function compose(View $view): void
{
$view->with('theme', 'classic');
$view->with('subTheme', 'normal');
}
}