Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

public_path() laravel not working

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?

like image 958
José Neto Avatar asked Dec 02 '13 04:12

José Neto


1 Answers

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'
like image 87
lukasgeiter Avatar answered Oct 20 '22 04:10

lukasgeiter