mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
21 lines
442 B
PHP
21 lines
442 B
PHP
<?php
|
|
|
|
namespace Crater\Http\Controllers\V1\Payment;
|
|
|
|
use Crater\Http\Controllers\Controller;
|
|
use Crater\Models\Payment;
|
|
|
|
class PaymentPdfController extends Controller
|
|
{
|
|
/**
|
|
* Handle the incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function __invoke(Payment $payment)
|
|
{
|
|
return $payment->getGeneratedPDFOrStream('payment');
|
|
}
|
|
}
|