service-captcha/app/Providers/AuthServiceProvider.php

29 lines
758 B
PHP

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