I'm setting up laravel-snappy to create pdf.
My snappy config is as below
<?php
return array(
'pdf' => array(
'enabled' => true,
'binary' => base_path('vendor/h4cc/wkhtmltopdf/bin/wkhtmltopdf'),
...
By running config('snappy') inside tinker, I also get the exact required path that is within the laravel project folder
But I'm getting the following error
local.ERROR: is_dir(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s):
How can I solve this without changing the php settings?
/tmp
directory without permission. – Dan