<?php

namespace App\Providers;

use View;
use Illuminate\Support\ServiceProvider;

class ComposerServiceProvider extends ServiceProvider
{
    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function boot()
    {
        // Using class based composers...
        view()->composer('compose', 'App\Http\ViewComposers\AdminComposer');
        
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        //
        view()->composer(
            ['admin.*'], 'App\Http\ViewComposers\AdminComposer'
        );
    }
}