{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/internals/issues/392","repository_url":"https://api.github.com/repos/laravel/internals","labels_url":"https://api.github.com/repos/laravel/internals/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/laravel/internals/issues/392/comments","events_url":"https://api.github.com/repos/laravel/internals/issues/392/events","html_url":"https://github.com/laravel/internals/issues/392","id":203796486,"number":392,"title":"[Proposal] Asset domain configuration","user":{"login":"dwightwatson","id":1100408,"avatar_url":"https://avatars0.githubusercontent.com/u/1100408?v=3","gravatar_id":"","url":"https://api.github.com/users/dwightwatson","html_url":"https://github.com/dwightwatson","followers_url":"https://api.github.com/users/dwightwatson/followers","following_url":"https://api.github.com/users/dwightwatson/following{/other_user}","gists_url":"https://api.github.com/users/dwightwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/dwightwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwightwatson/subscriptions","organizations_url":"https://api.github.com/users/dwightwatson/orgs","repos_url":"https://api.github.com/users/dwightwatson/repos","events_url":"https://api.github.com/users/dwightwatson/events{/privacy}","received_events_url":"https://api.github.com/users/dwightwatson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-28T09:01:50Z","updated_at":"2017-03-28T22:29:01Z","closed_at":null,"body":"I've noticed that the `mix` helper returns an absolute URL for assets, where the `elixir` helper would return a relative one. However, you might not always want to be serving your assets from the same URL as the app. For example, a CDN that might sit in front of your app and cache assets.\r\n\r\nI'd like to propose a second URL be added in `config/app.php` or wherever else is appropriate, something like `asset_url`. It could default to the primary URL but changed if necessary.\r\n\r\nIs this a PR you'd consider? Otherwise, is the functionality I'm after already available in another way?"},"comment":{"url":"https://api.github.com/repos/laravel/internals/issues/comments/289924341","html_url":"https://github.com/laravel/internals/issues/392#issuecomment-289924341","issue_url":"https://api.github.com/repos/laravel/internals/issues/392","id":289924341,"user":{"login":"dwightwatson","id":1100408,"avatar_url":"https://avatars0.githubusercontent.com/u/1100408?v=3","gravatar_id":"","url":"https://api.github.com/users/dwightwatson","html_url":"https://github.com/dwightwatson","followers_url":"https://api.github.com/users/dwightwatson/followers","following_url":"https://api.github.com/users/dwightwatson/following{/other_user}","gists_url":"https://api.github.com/users/dwightwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/dwightwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwightwatson/subscriptions","organizations_url":"https://api.github.com/users/dwightwatson/orgs","repos_url":"https://api.github.com/users/dwightwatson/repos","events_url":"https://api.github.com/users/dwightwatson/events{/privacy}","received_events_url":"https://api.github.com/users/dwightwatson/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T22:29:01Z","updated_at":"2017-03-28T22:29:01Z","body":"I still think it would be beneficial to have some sort of `asset_url` configuration so that it would be easy to use a CDN with your apps.  The PR I made above was just updated Mix to return a relative path rather than an absolute path so it's easier to replace with another host if you need."}}
{"actor":{"display_login":"dwightwatson"}}