mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-03 13:51:08 +00:00
chore(receivables): remove legacy-era receivables sources
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Receivables\Http\Controllers;
|
||||
|
||||
use App\Domains\Receivables\Http\Resources\PaymentResource;
|
||||
use App\Domains\Receivables\Models\Payment;
|
||||
use App\Platform\Http\Controller;
|
||||
use App\Platform\Mail\Models\EmailLog;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PublicPaymentController extends Controller
|
||||
{
|
||||
public function getPdf(EmailLog $emailLog, Request $request)
|
||||
{
|
||||
$payment = $emailLog->mailable;
|
||||
abort_unless($payment instanceof Payment, 404);
|
||||
abort_if($emailLog->isExpired(), 403, 'Link Expired.');
|
||||
|
||||
return $payment->getGeneratedPDFOrStream('payment');
|
||||
}
|
||||
|
||||
public function getPayment(EmailLog $emailLog)
|
||||
{
|
||||
$payment = $emailLog->mailable;
|
||||
abort_unless($payment instanceof Payment, 404);
|
||||
abort_if($emailLog->isExpired(), 403, 'Link Expired.');
|
||||
|
||||
return new PaymentResource($payment);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user