问题
public_path()
isn't working for me (local environment works, production returns empty string). All other path
functions are working correctly (app, base and storage).
I searched on google but not find a solution.
Can somebody help me?
回答1:
The OP solved his problem by himself. I'm only posting this answer so it's more visible and the question doesn't show up under "unanswered"
The configuration value for the public path may needs to be adjusted.
bootstrap/paths.php
'public' => __DIR__.'/../public'
来源:https://stackoverflow.com/questions/20321052/public-path-laravel-not-working