2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
2019-10-31 17:24:53 -04:00
|
|
|
use Illuminate\Support\Facades\Gate;
|
2016-08-19 16:38:49 -04:00
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
2022-05-23 21:01:33 -04:00
|
|
|
* The model to policy mappings for the application.
|
2016-08-19 16:38:49 -04:00
|
|
|
*
|
2022-05-23 21:01:33 -04:00
|
|
|
* @var array<class-string, class-string>
|
2016-08-19 16:38:49 -04:00
|
|
|
*/
|
|
|
|
protected $policies = [
|
2020-12-09 16:00:01 -05:00
|
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
2016-08-19 16:38:49 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
$this->registerPolicies();
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|