Skip to content

How to get public directory?


Use public_path()

And just for reference:

// Path to the project's root folder    
echo base_path();

// Path to the 'app' folder    
echo app_path();        

// Path to the 'public' folder    
echo public_path();

//Path to the 'app/storage' folder    
echo storage_path();

Posted in Laravel, Php. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.