adrema/app/Invoice/Actions/DisplayRememberpdfAction.php

21 lines
435 B
PHP
Raw Permalink Normal View History

2023-12-18 00:16:58 +01:00
<?php
namespace App\Invoice\Actions;
use App\Invoice\Models\Invoice;
use App\Invoice\RememberDocument;
use Illuminate\Http\Response;
use Lorisleiva\Actions\Concerns\AsAction;
use Zoomyboy\Tex\BaseCompiler;
use Zoomyboy\Tex\Tex;
class DisplayRememberpdfAction
{
use AsAction;
public function handle(Invoice $invoice): BaseCompiler|Response
{
return Tex::compile(RememberDocument::fromInvoice($invoice));
}
}