laravel/laravel — pull request #578 by cviebrock (2012-04-24 04:45:48+00:00)
Title: Configuration option to set different base URL for assets

If you've got a super-duper application, and you need to serve your static assets via a different domain (maybe a CDN, or just another server), this patch allows you to set that in `application/config/application.php`.

If it's not set, the default behaviour happens: the assets are given the same base URL as the rest of the application.

This setting is applied to all the assets managed through the `Asset::` class of functions, plus:

* URL::to_asset()
* Form::image()
* HTML::script()
* HTML::style()
* HTML::link_to_asset()
* HTML::image()
* the asset() helper function

Images in your CSS files, or coded directly in your HTML or views, need to either be explicitly set or prepended with the configuration setting. i.e.:

```php

```