forked from metin2/web
27 lines
493 B
PHP
27 lines
493 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use App\View\Composers\ShopComposer;
|
||
|
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
|
||
|
{
|
||
|
Facades\View::composer('layouts.shop', ShopComposer::class);
|
||
|
}
|
||
|
}
|