mirror of https://github.com/kcal-app/kcal.git
32 lines
606 B
PHP
32 lines
606 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\Goal;
|
|
use App\Models\User;
|
|
use App\Policies\GoalPolicy;
|
|
use App\Policies\UserPolicy;
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
protected $policies = [
|
|
Goal::class => GoalPolicy::class,
|
|
User::class => UserPolicy::class,
|
|
];
|
|
|
|
/**
|
|
* Register any authentication / authorization services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->registerPolicies();
|
|
}
|
|
}
|