mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-28 12:11:08 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			594 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			594 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| namespace Crater\Providers;
 | |
| 
 | |
| use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
 | |
| use Laravel\Passport\Passport;
 | |
| 
 | |
| class AuthServiceProvider extends ServiceProvider
 | |
| {
 | |
|     /**
 | |
|      * The policy mappings for the application.
 | |
|      *
 | |
|      * @var array
 | |
|      */
 | |
|     protected $policies = [
 | |
|         'Crater\Model' => 'Crater\Policies\ModelPolicy',
 | |
|     ];
 | |
| 
 | |
|     /**
 | |
|      * Register any authentication / authorization services.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function boot()
 | |
|     {
 | |
|         $this->registerPolicies();
 | |
| 
 | |
|         Passport::routes();
 | |
|     }
 | |
| }
 |