ClearBowl/api/app/Providers/AuthServiceProvider.php

31 lines
618 B
PHP
Raw Normal View History

2019-11-16 20:37:33 +01:00
<?php
namespace App\Providers;
use App\Models\User;
use App\Policies\UserPolicy;
2019-11-16 20:37:33 +01:00
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
User::class => UserPolicy::class,
2019-11-16 20:37:33 +01:00
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
}
}