ldc-cocotte/app/Providers/AuthServiceProvider.php

30 lines
579 B
PHP
Raw Permalink Normal View History

2020-10-30 17:26:00 +01:00
<?php
namespace App\Providers;
2022-09-12 14:25:45 +02:00
use App\Models\Product;
use App\Policies\ProductPolicy;
2020-10-30 17:26:00 +01:00
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
2022-09-12 14:25:45 +02:00
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
Product::class => ProductPolicy::class,
];
2020-10-30 17:26:00 +01:00
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
}
}