forked from metin2/web
WIP: started implementing shop, multi-language
This commit is contained in:
26
app/Providers/ViewServiceProvider.php
Normal file
26
app/Providers/ViewServiceProvider.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user