1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Providers/ComposerServiceProvider.php
David Bomba cdb98ce528
View Composers + JS testing framework (#2521)
* Add Jest testing to travis

* View Composers

* Composers
2018-11-26 15:15:08 +11:00

37 lines
617 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
View::composer(
[
'client.edit',
'client.list',
'dashboard.index',
],
'App\Http\ViewComposers\HeaderComposer'
);
}
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
}