ldc-supportweb/app/Http/Requests/Back/InvoiceCompanies/UpdateInvoiceCompanyRequest.php

23 lines
508 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\Back\InvoiceCompanies;
use Illuminate\Support\Facades\Gate;
/**
* Handles authorization and validation for updating an existing InvoiceCompany.
*/
class UpdateInvoiceCompanyRequest extends StoreInvoiceCompanyRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
2026-05-26 13:12:45 +02:00
#[\Override]
public function authorize(): bool
{
return Gate::check('update', $this->route('invoice_company'));
}
}