app/Providers/ComposerServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function boot()
{
view()->composer(
['_navi18n'], \App\Http\ViewComposers\NavLanguageComposer::class
);
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}