2019-05-14 07:52:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2023-01-27 10:35:00 +00:00
|
|
|
// use Illuminate\Support\Facades\Gate;
|
2019-05-14 07:52:49 +00:00
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
2023-01-27 10:35:00 +00:00
|
|
|
* The model to policy mappings for the application.
|
2019-05-14 07:52:49 +00:00
|
|
|
*
|
2023-01-27 10:35:00 +00:00
|
|
|
* @var array<class-string, class-string>
|
2019-05-14 07:52:49 +00:00
|
|
|
*/
|
|
|
|
protected $policies = [
|
2023-01-27 10:35:00 +00:00
|
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
2019-05-14 07:52:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
$this->registerPolicies();
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|