barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.66k stars 967 forks source link

Config option for custom public path #890

Closed erikn69 closed 2 years ago

erikn69 commented 2 years ago

Alternative to https://github.com/barryvdh/laravel-dompdf/pull/867 Fixes https://github.com/barryvdh/laravel-dompdf/issues/868

When using a custom public path base_path('public') isn't working. public_path() is a working replacement of this.

Rogierownage commented 2 years ago

Seems like a good fix! If your public path is not public you can set it to whatever it might be and it will be able to work.

This would fix the issue i have since my public path is public_html

angeljqv commented 2 years ago

@barryvdh ping

alfiosalanitri commented 2 years ago

This is the best solution. Thanks.