mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 14:03:18 -05: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();
 | 
						|
    }
 | 
						|
}
 |