{"action":"created","issue":{"url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/152","repository_url":"https://api.github.com/repos/owen-it/laravel-auditing","labels_url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/152/comments","events_url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/152/events","html_url":"https://github.com/owen-it/laravel-auditing/issues/152","id":190491903,"number":152,"title":"Show custom message only when field has changed","user":{"login":"kay899","id":3104135,"avatar_url":"https://avatars.githubusercontent.com/u/3104135?v=3","gravatar_id":"","url":"https://api.github.com/users/kay899","html_url":"https://github.com/kay899","followers_url":"https://api.github.com/users/kay899/followers","following_url":"https://api.github.com/users/kay899/following{/other_user}","gists_url":"https://api.github.com/users/kay899/gists{/gist_id}","starred_url":"https://api.github.com/users/kay899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kay899/subscriptions","organizations_url":"https://api.github.com/users/kay899/orgs","repos_url":"https://api.github.com/users/kay899/repos","events_url":"https://api.github.com/users/kay899/events{/privacy}","received_events_url":"https://api.github.com/users/kay899/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-19T11:33:41Z","updated_at":"2016-11-19T15:51:28Z","closed_at":null,"body":"Hi,\r\n\r\nfirst of all, a wonderful and helpful package. :-)\r\n\r\nWould it be possible that the CustomMessages are only shown for \"changed\" fields.\r\n\r\nActually I get:\r\n\r\n**Sabille updated an Address 27 minutes ago**\r\n- The street was changed from \" \" to \" \"\r\n- The zip was changed from \"23145\" to \"89765\"\r\n- The city was changed from \" \" to \" \"\r\n- The country was changed from \" \" to \" \"\r\n- IP Address: 127.0.0.1\r\n\r\nThe only field changed was ist \"street\", so I would expect only this two to see in the audio log. In the database you are only boring values for it, right?\r\n\r\nThanks\r\n\r\nkay899"},"comment":{"url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/comments/261721578","html_url":"https://github.com/owen-it/laravel-auditing/issues/152#issuecomment-261721578","issue_url":"https://api.github.com/repos/owen-it/laravel-auditing/issues/152","id":261721578,"user":{"login":"kay899","id":3104135,"avatar_url":"https://avatars.githubusercontent.com/u/3104135?v=3","gravatar_id":"","url":"https://api.github.com/users/kay899","html_url":"https://github.com/kay899","followers_url":"https://api.github.com/users/kay899/followers","following_url":"https://api.github.com/users/kay899/following{/other_user}","gists_url":"https://api.github.com/users/kay899/gists{/gist_id}","starred_url":"https://api.github.com/users/kay899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kay899/subscriptions","organizations_url":"https://api.github.com/users/kay899/orgs","repos_url":"https://api.github.com/users/kay899/repos","events_url":"https://api.github.com/users/kay899/events{/privacy}","received_events_url":"https://api.github.com/users/kay899/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T15:51:28Z","updated_at":"2016-11-19T15:51:28Z","body":"In Address Model:\r\n\r\n    public static $auditCustomMessage = '{user.name|Anonymous} {type} an Address {elapsed_time}'; \r\n\r\n    public static $auditCustomFields = [\r\n        'street'  => 'The street was changed from \"{old.street}\" to \"{new.street}\"', \r\n        'zip'  => 'The zip was changed from \"{old.zip}\" to \"{new.zip}\"', \r\n        'city'  => 'The city was changed from \"{old.city}\" to \"{new.city}\"', \r\n        'country'  => 'The country was changed from \"{old.country}\" to \"{new.country}\"', \r\n        'ip_address' => 'IP Address: {ip_address}',\r\n    ];\r\n\r\nIn View I use exactly your code example.\r\n\r\nthanks\r\n\r\nkay889\r\n\r\n"}}
{"actor":{"display_login":"kay899"}}