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

65 lines
1.4 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',
2018-01-18 11:16:02 +01:00
'invited.details',
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'
);
2018-02-04 22:41:48 +01:00
view()->composer(
[
'proposals.edit',
'proposals.templates.edit',
'proposals.snippets.edit',
],
'App\Http\ViewComposers\ProposalComposer'
);
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
}
2016-07-21 15:04:23 +02:00
}