1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +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)
{
$html = Cache::get($hash);
$data = [];
$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);
Cache::put($hash, $html, 300);
$url = route('tmp_pdf', ['hash' => $hash]);
info($url);
$key = config('ninja.phantomjs_key');