35 lines
898 B
PHP
35 lines
898 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Providers;
|
||
|
|
|
||
|
|
// use Illuminate\Support\Facades\Gate;
|
||
|
|
use App\Models\User;
|
||
|
|
use App\Modules\Client\Models\Client;
|
||
|
|
use App\Modules\Client\Policies\ClientPolicy;
|
||
|
|
use App\Modules\History\Models\HistoryEntry;
|
||
|
|
use App\Modules\History\Policies\HistoryEntryPolicy;
|
||
|
|
use App\Modules\User\Policies\UserPolicy;
|
||
|
|
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 = [
|
||
|
|
User::class => UserPolicy::class,
|
||
|
|
Client::class => ClientPolicy::class,
|
||
|
|
HistoryEntry::class => HistoryEntryPolicy::class,
|
||
|
|
];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Register any authentication / authorization services.
|
||
|
|
*/
|
||
|
|
public function boot(): void
|
||
|
|
{
|
||
|
|
//
|
||
|
|
}
|
||
|
|
}
|