 9a6f1788a4
			
		
	
	9a6f1788a4
	
	
	
		
			
			PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Providers;
 | |
| 
 | |
| use Illuminate\Support\ServiceProvider;
 | |
| 
 | |
| class ComposerServiceProvider extends ServiceProvider
 | |
| {
 | |
|     /**
 | |
|      * Bootstrap the application services.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function boot()
 | |
|     {
 | |
|         $service_desk = '';
 | |
|         // if (isInstall()) {
 | |
|         //     if (isPlugin()) {
 | |
|         //         $service_desk = 'service::interface.agent.sidebar';
 | |
|         //     }
 | |
|         // }
 | |
|         view()->composer(
 | |
|             [
 | |
|                 'themes.default1.agent.layout.agent',
 | |
|                 'themes.default1.agent.helpdesk.dashboard.dashboard',
 | |
|                 'themes.default1.admin.layout.admin',
 | |
|                 'themes.default1.admin.helpdesk.setting',
 | |
|                 $service_desk,
 | |
|             ],
 | |
|             \App\Http\ViewComposers\AgentLayout::class
 | |
|         );
 | |
|         view()->composer(
 | |
|             [
 | |
|                 'themes.default1.update.notification',
 | |
|             ],
 | |
|             \App\Http\ViewComposers\UpdateNotification::class
 | |
|         );
 | |
|         view()->composer(
 | |
|             [
 | |
|                 'themes.default1.agent.layout.agent',
 | |
|                 'themes.default1.admin.layout.admin',
 | |
|             ],
 | |
|             \App\Http\ViewComposers\AuthUser::class
 | |
|         );
 | |
|         view()->composer(
 | |
|             [
 | |
|                 'themes.default1.admin.layout.admin',
 | |
|                 'themes.default1.agent.layout.agent',
 | |
|                 'themes.default1.client.layout.client',
 | |
|             ],
 | |
|             \App\Http\ViewComposers\UserLanguage::class
 | |
|         );
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Register the application services.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function register()
 | |
|     {
 | |
|         //
 | |
|     }
 | |
| }
 |