public_path() laravel not working

旧巷老猫 提交于 2019-12-10 13:32:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!