2015-08-29 20:27:18 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
2019-09-10 17:26:00 +02:00
|
|
|
use Illuminate\Support\Facades\Gate;
|
2015-08-29 20:27:18 -05:00
|
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The policy mappings for the application.
|
|
|
|
|
*
|
2021-12-03 15:04:57 +00:00
|
|
|
* @var array<class-string, class-string>
|
2015-08-29 20:27:18 -05:00
|
|
|
*/
|
|
|
|
|
protected $policies = [
|
2020-09-15 06:35:19 +02:00
|
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
2015-08-29 20:27:18 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
2016-07-18 10:41:51 -05:00
|
|
|
* Register any authentication / authorization services.
|
2015-08-29 20:27:18 -05:00
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2016-07-11 15:44:50 -05:00
|
|
|
public function boot()
|
2015-08-29 20:27:18 -05:00
|
|
|
{
|
2016-07-11 15:44:50 -05:00
|
|
|
$this->registerPolicies();
|
2015-08-29 20:27:18 -05:00
|
|
|
|
2015-08-30 07:31:25 -04:00
|
|
|
//
|
2015-08-29 20:27:18 -05:00
|
|
|
}
|
|
|
|
|
}
|