Im using URL::base(); and I get this URL:
http://www.kp.com.mx/sis_colgate/public
but what I need is this complete path:
/home/
you can find info about paths in documentation:
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'