2023-03-05 20:14:04 +06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
// use Illuminate\Support\Facades\Gate;
|
|
|
|
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 = [
|
2023-07-16 19:21:09 +06:00
|
|
|
\App\Models\Role::class => \App\Policies\RolePolicy::class,
|
2023-03-05 20:14:04 +06:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|