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

Working on client portal header

This commit is contained in:
Hillel Coren 2016-09-22 23:38:07 +03:00
parent 6f90e1998e
commit a8cd70fa16
2 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\ViewComposers;
use Cache;
use Illuminate\View\View;
/**
* ClientPortalHeaderComposer.php.
*
* @copyright See LICENSE file that was distributed with this source code.
*/
class ClientPortalHeaderComposer
{
/**
* Bind data to the view.
*
* @param View $view
*
* @return void
*/
public function compose(View $view)
{
$view->with('testing', 'value');
}
}

View File

@ -14,14 +14,30 @@ class ComposerServiceProvider extends ServiceProvider
public function boot()
{
view()->composer(
['accounts.details', 'clients.edit', 'payments.edit', 'invoices.edit', 'accounts.localization'],
[
'accounts.details',
'clients.edit',
'payments.edit',
'invoices.edit',
'accounts.localization'
],
'App\Http\ViewComposers\TranslationComposer'
);
view()->composer(
['header', 'tasks.edit'],
[
'header',
'tasks.edit'
],
'App\Http\ViewComposers\AppLanguageComposer'
);
view()->composer(
[
'invited.dashboard',
],
'App\Http\ViewComposers\ClientPortalHeaderComposer'
);
}
/**