2016-06-20 13:35:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
2019-11-08 12:08:34 +00:00
|
|
|
use Illuminate\Support\Facades\Gate;
|
2016-06-20 13:35:59 +00:00
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $policies = [
|
2019-11-08 12:08:34 +00:00
|
|
|
// 'App\Model' => 'App\Policies\ModelPolicy',
|
2016-06-20 13:35:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
2019-11-08 12:08:34 +00:00
|
|
|
* Register any authentication / authorization services.
|
2016-06-20 13:35:59 +00:00
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2019-11-08 12:08:34 +00:00
|
|
|
public function boot()
|
2016-06-20 13:35:59 +00:00
|
|
|
{
|
2019-11-08 12:08:34 +00:00
|
|
|
$this->registerPolicies();
|
2016-06-20 13:35:59 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|