2018-11-26 05:15:08 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ComposerServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2019-03-28 10:05:13 +01:00
|
|
|
/*
|
2019-02-17 11:34:46 +01:00
|
|
|
view()->composer('*', 'App\Http\ViewComposers\HeaderComposer');
|
|
|
|
|
|
|
|
view()->composer(
|
|
|
|
[
|
|
|
|
'client.edit',
|
|
|
|
],
|
|
|
|
'App\Http\ViewComposers\TranslationComposer'
|
|
|
|
);
|
2019-03-28 10:05:13 +01:00
|
|
|
*/
|
2018-11-26 05:15:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|