2022-08-12 07:56:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2022-11-06 11:28:22 +00:00
|
|
|
// use Illuminate\Support\Facades\Gate;
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
2022-08-12 07:56:56 +00:00
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
2022-11-06 11:28:22 +00:00
|
|
|
* The model to policy mappings for the application.
|
2022-08-12 07:56:56 +00:00
|
|
|
*
|
2022-11-06 11:28:22 +00:00
|
|
|
* @var array<class-string, class-string>
|
2022-08-12 07:56:56 +00:00
|
|
|
*/
|
2022-11-06 11:28:22 +00:00
|
|
|
protected $policies = [
|
|
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
|
|
|
];
|
2022-08-12 07:56:56 +00:00
|
|
|
|
|
|
|
/**
|
2022-11-06 11:28:22 +00:00
|
|
|
* Register any authentication / authorization services.
|
2022-08-12 07:56:56 +00:00
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2022-11-06 11:28:22 +00:00
|
|
|
$this->registerPolicies();
|
2022-09-08 16:12:02 +00:00
|
|
|
|
2022-11-06 11:28:22 +00:00
|
|
|
//
|
2022-08-12 07:56:56 +00:00
|
|
|
}
|
|
|
|
}
|