<?php

namespace App\Providers;

use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class ViewServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        View::composer('shared.footer', 'App\Http\View\Composers\FooterPagesComposer');

        View::composer([
            'shared.header'
        ], 'App\Http\View\Composers\UserStatsComposer');

        View::composer([
            'shared.sidebars.user'
        ], 'App\Http\View\Composers\UserWebsitesComposer');
    }
}
