<?php

namespace Milax\Mconsole\Providers;

use Illuminate\Support\ServiceProvider;

class ViewComposersServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
    
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        view()->composer('mconsole::app', 'Milax\Mconsole\Composers\SectionComposer');
        view()->composer('mconsole::partials.menu', 'Milax\Mconsole\Composers\MenuComposer');
        view()->composer('mconsole::app', 'Milax\Mconsole\Composers\OptionsComposer');
        view()->composer(['mconsole::forms.upload', 'mconsole::uploads.form'], 'Milax\Mconsole\Composers\UploadFormComposer');
        view()->composer('mconsole::forms.tags', 'Milax\Mconsole\Composers\TagsInputComposer');
        view()->composer('mconsole::helpers.blade', 'Milax\Mconsole\Composers\BladeHelperViewComposer');
        view()->composer('mconsole::forms.links', 'Milax\Mconsole\Composers\LinksSetsComposer');
        view()->composer('mconsole::menu.form', 'Milax\Mconsole\Composers\LanguagesComposer');
    }
}

<?php

namespace Milax\Mconsole\Providers;

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

class ViewComposersServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
    
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        View::composer('mconsole::app', 'Milax\Mconsole\Composers\SectionComposer');
        View::composer('mconsole::partials.menu', 'Milax\Mconsole\Composers\MenuComposer');
        View::composer('mconsole::app', 'Milax\Mconsole\Composers\OptionsComposer');
        View::composer(['mconsole::forms.upload', 'mconsole::uploads.form'], 'Milax\Mconsole\Composers\UploadFormComposer');
        View::composer('mconsole::forms.tags', 'Milax\Mconsole\Composers\TagsInputComposer');
        View::composer('mconsole::helpers.blade', 'Milax\Mconsole\Composers\BladeHelperViewComposer');
        View::composer('mconsole::forms.links', 'Milax\Mconsole\Composers\LinksSetsComposer');
        View::composer('mconsole::menu.form', 'Milax\Mconsole\Composers\LanguagesComposer');
    }
}

--- 
+++ 
@@ -3,7 +3,6 @@
 namespace Milax\Mconsole\Providers;
 
 use Illuminate\Support\ServiceProvider;
-use Illuminate\Support\Facades\View;
 
 class ViewComposersServiceProvider extends ServiceProvider
 {
@@ -24,13 +23,13 @@
      */
     public function register()
     {
-        View::composer('mconsole::app', 'Milax\Mconsole\Composers\SectionComposer');
-        View::composer('mconsole::partials.menu', 'Milax\Mconsole\Composers\MenuComposer');
-        View::composer('mconsole::app', 'Milax\Mconsole\Composers\OptionsComposer');
-        View::composer(['mconsole::forms.upload', 'mconsole::uploads.form'], 'Milax\Mconsole\Composers\UploadFormComposer');
-        View::composer('mconsole::forms.tags', 'Milax\Mconsole\Composers\TagsInputComposer');
-        View::composer('mconsole::helpers.blade', 'Milax\Mconsole\Composers\BladeHelperViewComposer');
-        View::composer('mconsole::forms.links', 'Milax\Mconsole\Composers\LinksSetsComposer');
-        View::composer('mconsole::menu.form', 'Milax\Mconsole\Composers\LanguagesComposer');
+        view()->composer('mconsole::app', 'Milax\Mconsole\Composers\SectionComposer');
+        view()->composer('mconsole::partials.menu', 'Milax\Mconsole\Composers\MenuComposer');
+        view()->composer('mconsole::app', 'Milax\Mconsole\Composers\OptionsComposer');
+        view()->composer(['mconsole::forms.upload', 'mconsole::uploads.form'], 'Milax\Mconsole\Composers\UploadFormComposer');
+        view()->composer('mconsole::forms.tags', 'Milax\Mconsole\Composers\TagsInputComposer');
+        view()->composer('mconsole::helpers.blade', 'Milax\Mconsole\Composers\BladeHelperViewComposer');
+        view()->composer('mconsole::forms.links', 'Milax\Mconsole\Composers\LinksSetsComposer');
+        view()->composer('mconsole::menu.form', 'Milax\Mconsole\Composers\LanguagesComposer');
     }
 }
Revert "Update to laravel 5.4 guidelines"

This reverts commit 703ce34feda94d17c52684767b574d5dd1c1e97e.
