base_url and site_url in laravel

Often, you will need to generate URLs to your routes, you may do so using the URL::to method:

$url = URL::to('foo');

or

<a href="{{ URL::to('login') }}">LOGIN</a>

and url genarate link for public/assets/

<script src="{{ URL::asset('assets/landing/js/canvasjs.min.js') }}"></script>

Related posts:

This entry was posted in laravel4. Bookmark the permalink.