1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Providers/ComposerServiceProvider.php

53 lines
1.0 KiB
PHP
Raw Normal View History

<?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-09-22 22:38:07 +02:00
[
'accounts.details',
'clients.edit',
'payments.edit',
'invoices.edit',
'accounts.localization'
],
'App\Http\ViewComposers\TranslationComposer'
);
2016-07-21 15:04:23 +02:00
view()->composer(
2016-09-22 22:38:07 +02:00
[
'header',
'tasks.edit'
],
2016-07-21 15:04:23 +02:00
'App\Http\ViewComposers\AppLanguageComposer'
);
2016-09-22 22:38:07 +02:00
view()->composer(
[
2016-09-23 11:02:48 +02:00
'public.header'
2016-09-22 22:38:07 +02:00
],
'App\Http\ViewComposers\ClientPortalHeaderComposer'
);
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
}
2016-07-21 15:04:23 +02:00
}