{"action":"opened","issue":{"url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/170","repository_url":"https://api.github.com/repos/spatie/laravel-activitylog","labels_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/170/comments","events_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/170/events","html_url":"https://github.com/spatie/laravel-activitylog/issues/170","id":220890931,"number":170,"title":"Bulk insert of a model doesn't trigger the activity logger","user":{"login":"ventouris","id":4704175,"avatar_url":"https://avatars1.githubusercontent.com/u/4704175?v=3","gravatar_id":"","url":"https://api.github.com/users/ventouris","html_url":"https://github.com/ventouris","followers_url":"https://api.github.com/users/ventouris/followers","following_url":"https://api.github.com/users/ventouris/following{/other_user}","gists_url":"https://api.github.com/users/ventouris/gists{/gist_id}","starred_url":"https://api.github.com/users/ventouris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventouris/subscriptions","organizations_url":"https://api.github.com/users/ventouris/orgs","repos_url":"https://api.github.com/users/ventouris/repos","events_url":"https://api.github.com/users/ventouris/events{/privacy}","received_events_url":"https://api.github.com/users/ventouris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-11T09:27:51Z","updated_at":"2017-04-11T09:27:51Z","closed_at":null,"body":"I have a model with those logAttributes:\r\n\r\n```\r\nprotected static $logAttributes = [\r\n        'id',\r\n        'product_id',\r\n        'supplier_id',\r\n        'quantity',\r\n        'type'\r\n    ];\r\n```\r\nWhen I want to bulk insert an array of those models like this:\r\n\r\n`Sample::insert(json_decode($samples, true));`\r\n\r\nThe activity doesn't trigger and nothing is logged on the database.\r\n"}}
{"actor":{"display_login":"ventouris"}}