mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 00:41:34 +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)
|
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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user