2023-06-21 09:53:21 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
// use Illuminate\Support\Facades\Gate;
|
|
|
|
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
2024-01-13 11:45:40 -05:00
|
|
|
use App\Policies\ArtworkPolicy;
|
|
|
|
use App\Models\Artwork;
|
2023-06-21 09:53:21 -04:00
|
|
|
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The model to policy mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array<class-string, class-string>
|
|
|
|
*/
|
|
|
|
protected $policies = [
|
2024-01-13 11:45:40 -05:00
|
|
|
Artwork::class => ArtworkPolicy::class,
|
2023-06-21 09:53:21 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any authentication / authorization services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|