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-09-22 22:38:07 +02:00
|
|
|
[
|
|
|
|
'accounts.details',
|
|
|
|
'clients.edit',
|
2017-04-18 09:10:15 +02:00
|
|
|
'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',
|
2017-04-18 09:10:15 +02:00
|
|
|
'payments.credit_card',
|
2018-01-18 11:16:02 +01:00
|
|
|
'invited.details',
|
2016-09-22 22:38:07 +02:00
|
|
|
],
|
2016-07-01 23:19:09 +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'
|
|
|
|
);
|
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
|
|
|
}
|