{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9274","labels_url":"https://api.github.com/repos/laravel/framework/issues/9274/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9274/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9274/events","html_url":"https://github.com/laravel/framework/pull/9274","id":88365814,"number":9274,"title":"Change compileEchoDefaults","user":{"login":"filipeaclima","id":10496659,"avatar_url":"https://avatars.githubusercontent.com/u/10496659?v=3","gravatar_id":"","url":"https://api.github.com/users/filipeaclima","html_url":"https://github.com/filipeaclima","followers_url":"https://api.github.com/users/filipeaclima/followers","following_url":"https://api.github.com/users/filipeaclima/following{/other_user}","gists_url":"https://api.github.com/users/filipeaclima/gists{/gist_id}","starred_url":"https://api.github.com/users/filipeaclima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipeaclima/subscriptions","organizations_url":"https://api.github.com/users/filipeaclima/orgs","repos_url":"https://api.github.com/users/filipeaclima/repos","events_url":"https://api.github.com/users/filipeaclima/events{/privacy}","received_events_url":"https://api.github.com/users/filipeaclima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-15T09:11:30Z","updated_at":"2015-06-15T09:18:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/9274","html_url":"https://github.com/laravel/framework/pull/9274","diff_url":"https://github.com/laravel/framework/pull/9274.diff","patch_url":"https://github.com/laravel/framework/pull/9274.patch"},"body":"As defined in the documentation (http://laravel.com/docs/5.1/blade#displaying-data) we currently can use \"{{ $name or 'Default' }}\" to echo data.\r\n\r\nWith this change we could also use functions (not only variables) with this feature. An example of this use could be \"{{ old('name') or 'Default' }}\"\r\n\r\nNote: sending it to 5.2 as requested on pull request #9239 (https://github.com/laravel/framework/pull/9239)"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/111989022","html_url":"https://github.com/laravel/framework/pull/9274#issuecomment-111989022","issue_url":"https://api.github.com/repos/laravel/framework/issues/9274","id":111989022,"user":{"login":"franzliedke","id":249125,"avatar_url":"https://avatars.githubusercontent.com/u/249125?v=3","gravatar_id":"","url":"https://api.github.com/users/franzliedke","html_url":"https://github.com/franzliedke","followers_url":"https://api.github.com/users/franzliedke/followers","following_url":"https://api.github.com/users/franzliedke/following{/other_user}","gists_url":"https://api.github.com/users/franzliedke/gists{/gist_id}","starred_url":"https://api.github.com/users/franzliedke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzliedke/subscriptions","organizations_url":"https://api.github.com/users/franzliedke/orgs","repos_url":"https://api.github.com/users/franzliedke/repos","events_url":"https://api.github.com/users/franzliedke/events{/privacy}","received_events_url":"https://api.github.com/users/franzliedke/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T09:18:36Z","updated_at":"2015-06-15T09:18:36Z","body":"For the replacement, what about this instead?\r\n\r\n~~~php\r\n'$__a = ($1 !== NULL) ? $__a : $2'\r\n~~~\r\n\r\nThis would make sure a function (if you pass in a function) is only called once.\r\n(Also, we'd need to make sure to generate a conflict-free name for that variable.)"}}