33 lines
606 B
PHP
33 lines
606 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Views\Composers\ParentCategoryComposer;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ViewServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Using class based composers...
|
|
View::composer('front.layouts.partials.nav', ParentCategoryComposer::class);
|
|
|
|
}
|
|
}
|