{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/362","repository_url":"https://api.github.com/repos/spatie/laravel-activitylog","labels_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/362/comments","events_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/362/events","html_url":"https://github.com/spatie/laravel-activitylog/issues/362","id":310026402,"number":362,"title":"Trait not found  error on upgrade from old activity log package to new.","user":{"login":"atulshrma91","id":17331167,"avatar_url":"https://avatars1.githubusercontent.com/u/17331167?v=4","gravatar_id":"","url":"https://api.github.com/users/atulshrma91","html_url":"https://github.com/atulshrma91","followers_url":"https://api.github.com/users/atulshrma91/followers","following_url":"https://api.github.com/users/atulshrma91/following{/other_user}","gists_url":"https://api.github.com/users/atulshrma91/gists{/gist_id}","starred_url":"https://api.github.com/users/atulshrma91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulshrma91/subscriptions","organizations_url":"https://api.github.com/users/atulshrma91/orgs","repos_url":"https://api.github.com/users/atulshrma91/repos","events_url":"https://api.github.com/users/atulshrma91/events{/privacy}","received_events_url":"https://api.github.com/users/atulshrma91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-30T09:53:11Z","updated_at":"2018-03-30T11:41:40Z","closed_at":null,"author_association":"NONE","body":" I have upgraded laravel 5.1 to laravel 5.5.\r\nI did this -\r\n\r\nSimply comment out the line within the ServiceProvider, publish the migration, rename the class in the new migration file to something like CreateNewActivityLogTable and then run composer dump\r\n\r\nBut now project I'm getting trait missing. \"Trait 'Spatie\\Activitylog\\LogsActivity' not found\"\r\n\r\nLogsActivity.php is found in \\vendor\\spatie\\laravel-activitylog\\src\\Traits in my installation. my composer has \"spatie/laravel-activitylog\": \"^2.5\"\r\n\r\nI have migrated the new activity log table, manually added content to app/activitylog.php and in service provider array added \"Spatie\\Activitylog\\ActivitylogServiceProvider::class,\""},"comment":{"url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/comments/377507582","html_url":"https://github.com/spatie/laravel-activitylog/issues/362#issuecomment-377507582","issue_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/362","id":377507582,"user":{"login":"atulshrma91","id":17331167,"avatar_url":"https://avatars1.githubusercontent.com/u/17331167?v=4","gravatar_id":"","url":"https://api.github.com/users/atulshrma91","html_url":"https://github.com/atulshrma91","followers_url":"https://api.github.com/users/atulshrma91/followers","following_url":"https://api.github.com/users/atulshrma91/following{/other_user}","gists_url":"https://api.github.com/users/atulshrma91/gists{/gist_id}","starred_url":"https://api.github.com/users/atulshrma91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulshrma91/subscriptions","organizations_url":"https://api.github.com/users/atulshrma91/orgs","repos_url":"https://api.github.com/users/atulshrma91/repos","events_url":"https://api.github.com/users/atulshrma91/events{/privacy}","received_events_url":"https://api.github.com/users/atulshrma91/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T11:41:40Z","updated_at":"2018-03-30T11:41:40Z","author_association":"NONE","body":"ok I got it I have to update the class the on every model that I have created . \r\n\r\nuse Spatie\\Activitylog\\Traits\\LogsActivity;\r\n\r\nit works. thanks"}}
{"actor":{"display_login":"atulshrma91"}}