33 lines
643 B
PHP
33 lines
643 B
PHP
<?php
|
|
|
|
namespace Webkul\Checkout\Providers;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\Facades\Blade;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use View;
|
|
|
|
class ComposerServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register bindings in the container.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//using the class based composers...
|
|
View::composer(['shop::layouts.header.index'], 'Webkul\Checkout\Http\ViewComposers\CartComposer');
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
}
|