2023-08-22 00:15:35 +06:00
|
|
|
<?php declare(strict_types=1);
|
2023-03-05 20:14:04 +06:00
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
// use Illuminate\Support\Facades\Gate;
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
2023-08-22 00:15:35 +06:00
|
|
|
final class AuthServiceProvider extends ServiceProvider
|
2023-03-05 20:14:04 +06:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The model to policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array<class-string, class-string>
|
|
|
|
*/
|
|
|
|
protected $policies = [
|
2023-08-22 00:15:35 +06:00
|
|
|
\App\Models\Role::class => \App\Policies\RolePolicy::class,
|
|
|
|
\App\Models\User::class => \App\Policies\UserPolicy::class,
|
|
|
|
\App\Models\CaptchaToken::class => \App\Policies\CaptchaTokenPolicy::class,
|
2023-03-05 20:14:04 +06:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|