{"action":"created","issue":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/235","repository_url":"https://api.github.com/repos/Laravel-Backpack/CRUD","labels_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/235/comments","events_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/235/events","html_url":"https://github.com/Laravel-Backpack/CRUD/issues/235","id":189427326,"number":235,"title":"Model Observer not triggering on updated or saved","user":{"login":"Eminee","id":603253,"avatar_url":"https://avatars.githubusercontent.com/u/603253?v=3","gravatar_id":"","url":"https://api.github.com/users/Eminee","html_url":"https://github.com/Eminee","followers_url":"https://api.github.com/users/Eminee/followers","following_url":"https://api.github.com/users/Eminee/following{/other_user}","gists_url":"https://api.github.com/users/Eminee/gists{/gist_id}","starred_url":"https://api.github.com/users/Eminee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eminee/subscriptions","organizations_url":"https://api.github.com/users/Eminee/orgs","repos_url":"https://api.github.com/users/Eminee/repos","events_url":"https://api.github.com/users/Eminee/events{/privacy}","received_events_url":"https://api.github.com/users/Eminee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T15:46:31Z","updated_at":"2016-11-15T18:39:25Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to add a model observer for a CRUD model:\r\n\r\n```\r\nnamespace App\\Observers;\r\nuse App\\Admin;\r\n\r\n\r\nclass AdminObserver\r\n{\r\n\r\n    /**\r\n     * Listen to the Admin created event.\r\n     *\r\n     * @param  Admin  $admin\r\n     * @return void\r\n     */\r\n    public function created(Admin $admin)\r\n    {\r\n        dd('created');\r\n    }\r\n\r\n    public function updated(Admin $admin)\r\n    {\r\n        dd('updated');\r\n    }\r\n}\r\n```\r\nCreated works fine and triggers when I add a new admin.\r\nHowever the 'updated' listener never seems to get triggered when updating an entry. Nor does 'saved'.\r\n\r\nI've noticed the Laravel docs say:\r\n\r\n> When issuing a mass update via Eloquent, the saved and updated model events will not be fired for the updated models. This is because the models are never actually retrieved when issuing a mass update.\r\n\r\nIs this why the 'updated' listener doesn't get called? Is there any way around this?\r\n\r\nMany thanks."},"comment":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/comments/260727634","html_url":"https://github.com/Laravel-Backpack/CRUD/issues/235#issuecomment-260727634","issue_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/235","id":260727634,"user":{"login":"OwenMelbz","id":1094740,"avatar_url":"https://avatars.githubusercontent.com/u/1094740?v=3","gravatar_id":"","url":"https://api.github.com/users/OwenMelbz","html_url":"https://github.com/OwenMelbz","followers_url":"https://api.github.com/users/OwenMelbz/followers","following_url":"https://api.github.com/users/OwenMelbz/following{/other_user}","gists_url":"https://api.github.com/users/OwenMelbz/gists{/gist_id}","starred_url":"https://api.github.com/users/OwenMelbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OwenMelbz/subscriptions","organizations_url":"https://api.github.com/users/OwenMelbz/orgs","repos_url":"https://api.github.com/users/OwenMelbz/repos","events_url":"https://api.github.com/users/OwenMelbz/events{/privacy}","received_events_url":"https://api.github.com/users/OwenMelbz/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T18:39:25Z","updated_at":"2016-11-15T18:39:25Z","body":"@tabacitu any ideas? I've just had a go myself and can confirm its not firing, unless we're both doing something wrong? Might need to manually trigger it if not?"}}
{"actor":{"display_login":"OwenMelbz"}}