mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:41:05 +03:30
34 lines
745 B
PHP
34 lines
745 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
|
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 = [
|
|
'App\MedicalCenter' => 'App\Policies\MedicalCenterPolicy',
|
|
'App\User' => 'App\Policies\UserPolicy',
|
|
'App\TestType' => 'App\Policies\TestTypePolicy',
|
|
];
|
|
|
|
/**
|
|
* Register any authentication / authorization services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->registerPolicies();
|
|
|
|
Passport::routes();
|
|
}
|
|
}
|