Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Application Helper: public_path

The public_path function in Laravel returns the path to the public directory. It can also be used to construct paths relative to the public directory by providing a $path argument. The function does not automatically add a trailing slash to the final path, but this can be achieved by using the str_finish function in conjunction with public_path.