2016-07-01 23:19:09 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ComposerServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register bindings in the container.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
view()->composer(
|
2016-07-04 01:02:38 +02:00
|
|
|
['accounts.details', 'clients.edit', 'payments.edit', 'invoices.edit', 'accounts.localization'],
|
2016-07-01 23:19:09 +02:00
|
|
|
'App\Http\ViewComposers\TranslationComposer'
|
|
|
|
);
|
2016-07-21 15:04:23 +02:00
|
|
|
|
|
|
|
view()->composer(
|
|
|
|
['header', 'tasks.edit'],
|
|
|
|
'App\Http\ViewComposers\AppLanguageComposer'
|
|
|
|
);
|
2016-07-01 23:19:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the service provider.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2016-07-21 15:04:23 +02:00
|
|
|
}
|