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