mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
Temp routes"
This commit is contained in:
parent
3a78326a83
commit
9f4979095b
@ -25,10 +25,10 @@ class TempRouteController extends Controller
|
||||
*/
|
||||
public function index(string $hash)
|
||||
{
|
||||
|
||||
$html = Cache::get($hash);
|
||||
$data = [];
|
||||
$data['html'] = Cache::get($hash);
|
||||
|
||||
return view('pdf.html', $data);
|
||||
|
||||
return view('pdf.html', $html);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ class Phantom
|
||||
{
|
||||
$hash = Str::random(32);
|
||||
Cache::put($hash, $html, 300);
|
||||
|
||||
|
||||
$url = route('tmp_pdf', ['hash' => $hash]);
|
||||
info($url);
|
||||
$key = config('ninja.phantomjs_key');
|
||||
|
Loading…
Reference in New Issue
Block a user