mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 16:47:31 -04:00 
			
		
		
		
	* Show custom messages * Fix getSetting key * Add custom messages support with variable parsing
		
			
				
	
	
		
			32 lines
		
	
	
		
			528 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			528 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Providers;
 | |
| 
 | |
| use App\Utils\ClientPortal\CustomMessage\CustomMessage;
 | |
| use Illuminate\Support\ServiceProvider;
 | |
| 
 | |
| class ClientPortalServiceProvider extends ServiceProvider
 | |
| {
 | |
|     /**
 | |
|      * Register services.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function register()
 | |
|     {
 | |
|         app()->bind('customMessage', function () {
 | |
|             return new CustomMessage();
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Bootstrap services.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function boot()
 | |
|     {
 | |
|         //
 | |
|     }
 | |
| }
 |