2024-01-10 12:57:24 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
// use Illuminate\Support\Facades\Gate;
|
2024-02-14 10:18:45 +03:00
|
|
|
use App\Models\User;
|
|
|
|
use App\Policies\UserPolicy;
|
2024-01-10 12:57:24 +03:00
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The model to policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array<class-string, class-string>
|
|
|
|
*/
|
|
|
|
protected $policies = [
|
2024-02-14 10:18:45 +03:00
|
|
|
User::class => UserPolicy::class,
|
2024-01-10 12:57:24 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|