laravel base path
you can find info about paths in documentation:
- Laravel 6
- Laravel 5
- Laravel 4
What you want to use is the path
helper.
The URL helper is for generating HTTP URLs.
Try the path('public')
function in Laravel 3,
or the public_path()
function in Laravel 4.
Edit: Updated with answer for Laravel 4, thanks Erin
Laravel has helpers for paths:
base_path(); // '/var/www/mysite'
app_path(); // '/var/www/mysite/app'
storage_path(); // '/var/www/mysite/storage'