ldc-legaulois/app/Providers/AuthServiceProvider.php

33 lines
687 B
PHP
Raw Normal View History

2020-07-23 10:29:36 +02:00
<?php
namespace App\Providers;
use App\Models\BreedingPage;
2021-09-20 20:58:26 +02:00
use App\Models\Tag;
use App\Policies\BreedingPagePolicy;
2021-09-20 20:58:26 +02:00
use App\Policies\TagPolicy;
2020-07-23 10:29:36 +02:00
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
2021-09-20 20:58:26 +02:00
protected $policies = [
Tag::class => TagPolicy::class,
BreedingPage::class => BreedingPagePolicy::class,
2021-09-20 20:58:26 +02:00
];
2020-07-23 10:29:36 +02:00
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
}
}