mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	init crater
This commit is contained in:
		
							
								
								
									
										29
									
								
								app/Providers/AuthServiceProvider.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								app/Providers/AuthServiceProvider.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| <?php | ||||
| namespace Laraspace\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 = [ | ||||
|         'Laraspace\Model' => 'Laraspace\Policies\ModelPolicy', | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|      * Register any authentication / authorization services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot() | ||||
|     { | ||||
|         $this->registerPolicies(); | ||||
|  | ||||
|         Passport::routes(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user