2016-05-19 15:01:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $policies = [
|
2020-10-19 19:41:50 +01:00
|
|
|
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
2016-05-19 15:01:28 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application authentication / authorization services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2016-09-06 16:40:39 +01:00
|
|
|
public function boot()
|
2016-05-19 15:01:28 +01:00
|
|
|
{
|
2016-09-06 16:40:39 +01:00
|
|
|
$this->registerPolicies();
|
2016-05-19 15:01:28 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|