1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Temp routes"

This commit is contained in:
David Bomba 2020-11-27 20:21:18 +11:00
parent 3a78326a83
commit 9f4979095b
2 changed files with 5 additions and 5 deletions

View File

@ -25,10 +25,10 @@ class TempRouteController extends Controller
*/ */
public function index(string $hash) public function index(string $hash)
{ {
$data = [];
$html = Cache::get($hash); $data['html'] = Cache::get($hash);
return view('pdf.html', $data);
return view('pdf.html', $html);
} }
} }

View File

@ -88,7 +88,7 @@ class Phantom
{ {
$hash = Str::random(32); $hash = Str::random(32);
Cache::put($hash, $html, 300); Cache::put($hash, $html, 300);
$url = route('tmp_pdf', ['hash' => $hash]); $url = route('tmp_pdf', ['hash' => $hash]);
info($url); info($url);
$key = config('ninja.phantomjs_key'); $key = config('ninja.phantomjs_key');