mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 03:17:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Providers;
 | |
| 
 | |
| use Illuminate\Support\ServiceProvider;
 | |
| 
 | |
| class ComposerServiceProvider extends ServiceProvider
 | |
| {
 | |
|     /**
 | |
|      * Register bindings in the container.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function boot()
 | |
|     {
 | |
|         view()->composer(
 | |
|             [
 | |
|                 'accounts.details',
 | |
|                 'clients.edit',
 | |
|                 'payments.edit',
 | |
|                 'invoices.edit',
 | |
|                 'accounts.localization'
 | |
|             ],
 | |
|             'App\Http\ViewComposers\TranslationComposer'
 | |
|         );
 | |
| 
 | |
|         view()->composer(
 | |
|              [
 | |
|                  'header',
 | |
|                  'tasks.edit'
 | |
|              ],
 | |
|              'App\Http\ViewComposers\AppLanguageComposer'
 | |
|         );
 | |
| 
 | |
|         view()->composer(
 | |
|              [
 | |
|                  'public.header'
 | |
|              ],
 | |
|              'App\Http\ViewComposers\ClientPortalHeaderComposer'
 | |
|         );
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Register the service provider.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function register()
 | |
|     {
 | |
| 
 | |
|     }
 | |
| }
 |