Closed antonioreyna closed 8 years ago
try composer require pkpass/pkpass@dev-master
hi, yes that worked, now im having this error.
filesize(): stat failed for /tmp/PKPass579fd76f631658.54142659/pass.pkpass
i think the problem is here:
PKPass.php
// Get contents of generated file
$file = file_get_contents($paths['pkpass']);
262- $this->clean(); <-- you remove the files here
// Output pass
if ($output == true) {
$fileName = ($this->getName()) ? $this->getName() : basename($paths['pkpass']);
header('Pragma: no-cache');
header('Content-type: application/vnd.apple.pkpass');
269- header('Content-length: ' . filesize($paths['pkpass'])); <--- you has for the file previously removed here
did this instead:
// Get contents of generated file
$file = file_get_contents($paths['pkpass']);
$size = filesize($paths['pkpass']);
$this->clean();
// Output pass
if ($output == true) {
$fileName = ($this->getName()) ? $this->getName() : basename($paths['pkpass']);
header('Pragma: no-cache');
header('Content-type: application/vnd.apple.pkpass');
header('Content-length: ' . $size);
header('Content-Disposition: attachment; filename="' . $fileName . '"');
Let me know if thats ok and to check if you do an update to update the package on my project.
Thanks!
Yes, that seems to work perfectly! Would you mind doing a pull request with that change?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hello, I am trying to install it and i get this message:
I on laravel
5.2.41