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

55 lines
1.1 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',
'vendors.edit',
2016-09-22 22:38:07 +02:00
'payments.edit',
'invoices.edit',
2017-04-19 16:18:24 +02:00
'expenses.edit',
2017-01-30 20:40:43 +01:00
'accounts.localization',
'payments.credit_card',
2016-09-22 22:38:07 +02:00
],
'App\Http\ViewComposers\TranslationComposer'
);
2016-07-21 15:04:23 +02:00
view()->composer(
2016-09-22 22:38:07 +02:00
[
'header',
2017-01-30 20:40:43 +01:00
'tasks.edit',
2016-09-22 22:38:07 +02:00
],
2016-07-21 15:04:23 +02:00
'App\Http\ViewComposers\AppLanguageComposer'
);
2016-09-22 22:38:07 +02:00
view()->composer(
[
2017-01-30 20:40:43 +01: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
}