<?php

namespace App\Providers;

use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use App\Models\Product;
use App\Models\Service;
use App\Models\BankAccount;
use App\Models\Transaction;
use App\Models\ExpenseType;
use App\Models\Customer;
use App\Models\Invoice;
use App\Models\DigitalPayment;
use App\Policies\ProductPolicy;
use App\Policies\ServicePolicy;
use App\Policies\BankAccountPolicy;
use App\Policies\TransactionPolicy;
use App\Policies\ExpenseTypePolicy;
use App\Policies\CustomerPolicy;
use App\Policies\InvoicePolicy;
use App\Policies\DigitalPaymentPolicy;

class AuthServiceProvider extends ServiceProvider
{
    protected $policies = [
        Product::class => ProductPolicy::class,
        Service::class => ServicePolicy::class,
        BankAccount::class => BankAccountPolicy::class,
        Transaction::class => TransactionPolicy::class,
        ExpenseType::class => ExpenseTypePolicy::class,
        Customer::class => CustomerPolicy::class,
        Invoice::class => InvoicePolicy::class,
        DigitalPayment::class => DigitalPaymentPolicy::class,
    ];

    public function boot(): void
    {
        $this->registerPolicies();
    }
}
