{"action":"created","comment":{"url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/comments/82517351","pull_request_review_id":3421250,"id":82517351,"diff_hunk":"@@ -84,6 +84,42 @@ public function it_will_log_the_deletion_of_a_model_with_softdeletes()\n     }\n \n     /** @test */\n+    public function it_will_log_the_restoring_of_a_model_with_softdeletes()\n+    {\n+        $article = $this->createArticle();\n+\n+        $article->delete();\n+\n+        $article->restore();\n+\n+        $this->assertCount(3, Activity::all());\n+\n+        $this->assertEquals(get_class($this->article), $this->getLastActivity()->subject_type);\n+        $this->assertEquals($article->id, $this->getLastActivity()->subject_id);\n+        $this->assertEquals('restored', $this->getLastActivity()->description);\n+    }\n+\n+    /** @test */\n+    public function it_will_log_the_force_deleting_of_a_model_with_softdeletes()","path":"tests/LogsActivityTest.php","position":20,"original_position":20,"commit_id":"2dcdfa7660a0292e0198846c50bd7cf159de96d3","original_commit_id":"2dcdfa7660a0292e0198846c50bd7cf159de96d3","user":{"login":"freekmurze","id":483853,"avatar_url":"https://avatars.githubusercontent.com/u/483853?v=3","gravatar_id":"","url":"https://api.github.com/users/freekmurze","html_url":"https://github.com/freekmurze","followers_url":"https://api.github.com/users/freekmurze/followers","following_url":"https://api.github.com/users/freekmurze/following{/other_user}","gists_url":"https://api.github.com/users/freekmurze/gists{/gist_id}","starred_url":"https://api.github.com/users/freekmurze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekmurze/subscriptions","organizations_url":"https://api.github.com/users/freekmurze/orgs","repos_url":"https://api.github.com/users/freekmurze/repos","events_url":"https://api.github.com/users/freekmurze/events{/privacy}","received_events_url":"https://api.github.com/users/freekmurze/received_events","type":"User","site_admin":false},"body":"Remove this test","created_at":"2016-10-09T08:04:10Z","updated_at":"2016-10-09T08:05:43Z","html_url":"https://github.com/spatie/laravel-activitylog/pull/86#discussion_r82517351","pull_request_url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/comments/82517351"},"html":{"href":"https://github.com/spatie/laravel-activitylog/pull/86#discussion_r82517351"},"pull_request":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86","id":88561115,"html_url":"https://github.com/spatie/laravel-activitylog/pull/86","diff_url":"https://github.com/spatie/laravel-activitylog/pull/86.diff","patch_url":"https://github.com/spatie/laravel-activitylog/pull/86.patch","issue_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/86","number":86,"state":"open","locked":false,"title":"Bugfix SoftDeletes logging. Issue #85","user":{"login":"pabloguerrez","id":22682624,"avatar_url":"https://avatars.githubusercontent.com/u/22682624?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloguerrez","html_url":"https://github.com/pabloguerrez","followers_url":"https://api.github.com/users/pabloguerrez/followers","following_url":"https://api.github.com/users/pabloguerrez/following{/other_user}","gists_url":"https://api.github.com/users/pabloguerrez/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloguerrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloguerrez/subscriptions","organizations_url":"https://api.github.com/users/pabloguerrez/orgs","repos_url":"https://api.github.com/users/pabloguerrez/repos","events_url":"https://api.github.com/users/pabloguerrez/events{/privacy}","received_events_url":"https://api.github.com/users/pabloguerrez/received_events","type":"User","site_admin":false},"body":"- added logging of `restored` event in classes that use the SoftDeletes trait\r\n- `updated` event is no longer logged if model is just `restored`\r\n- changed description if `deleted` event is fired by `forceDelete()` method","created_at":"2016-10-08T22:28:14Z","updated_at":"2016-10-09T08:05:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4926ac6758c5e1390406925666845caa3839149","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86/commits","review_comments_url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86/comments","review_comment_url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/86/comments","statuses_url":"https://api.github.com/repos/spatie/laravel-activitylog/statuses/2dcdfa7660a0292e0198846c50bd7cf159de96d3","head":{"label":"pabloguerrez:master","ref":"master","sha":"2dcdfa7660a0292e0198846c50bd7cf159de96d3","user":{"login":"pabloguerrez","id":22682624,"avatar_url":"https://avatars.githubusercontent.com/u/22682624?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloguerrez","html_url":"https://github.com/pabloguerrez","followers_url":"https://api.github.com/users/pabloguerrez/followers","following_url":"https://api.github.com/users/pabloguerrez/following{/other_user}","gists_url":"https://api.github.com/users/pabloguerrez/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloguerrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloguerrez/subscriptions","organizations_url":"https://api.github.com/users/pabloguerrez/orgs","repos_url":"https://api.github.com/users/pabloguerrez/repos","events_url":"https://api.github.com/users/pabloguerrez/events{/privacy}","received_events_url":"https://api.github.com/users/pabloguerrez/received_events","type":"User","site_admin":false},"repo":{"id":70360338,"name":"laravel-activitylog","full_name":"pabloguerrez/laravel-activitylog","owner":{"login":"pabloguerrez","id":22682624,"avatar_url":"https://avatars.githubusercontent.com/u/22682624?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloguerrez","html_url":"https://github.com/pabloguerrez","followers_url":"https://api.github.com/users/pabloguerrez/followers","following_url":"https://api.github.com/users/pabloguerrez/following{/other_user}","gists_url":"https://api.github.com/users/pabloguerrez/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloguerrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloguerrez/subscriptions","organizations_url":"https://api.github.com/users/pabloguerrez/orgs","repos_url":"https://api.github.com/users/pabloguerrez/repos","events_url":"https://api.github.com/users/pabloguerrez/events{/privacy}","received_events_url":"https://api.github.com/users/pabloguerrez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pabloguerrez/laravel-activitylog","description":"Log activity inside your Laravel app","fork":true,"url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog","forks_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/forks","keys_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/teams","hooks_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/hooks","issue_events_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/issues/events{/number}","events_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/events","assignees_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/assignees{/user}","branches_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/branches{/branch}","tags_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/tags","blobs_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/statuses/{sha}","languages_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/languages","stargazers_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/stargazers","contributors_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/contributors","subscribers_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/subscribers","subscription_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/subscription","commits_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/contents/{+path}","compare_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/merges","archive_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/downloads","issues_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/issues{/number}","pulls_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/pulls{/number}","milestones_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/milestones{/number}","notifications_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/labels{/name}","releases_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/releases{/id}","deployments_url":"https://api.github.com/repos/pabloguerrez/laravel-activitylog/deployments","created_at":"2016-10-08T22:17:11Z","updated_at":"2016-10-08T22:17:12Z","pushed_at":"2016-10-08T22:18:29Z","git_url":"git://github.com/pabloguerrez/laravel-activitylog.git","ssh_url":"git@github.com:pabloguerrez/laravel-activitylog.git","clone_url":"https://github.com/pabloguerrez/laravel-activitylog.git","svn_url":"https://github.com/pabloguerrez/laravel-activitylog","homepage":"https://murze.be/2016/06/package-log-activity-laravel-app/","size":106,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spatie:master","ref":"master","sha":"7749b7361b4bf3cd7fdb94b0c73b33068724c854","user":{"login":"spatie","id":7535935,"avatar_url":"https://avatars.githubusercontent.com/u/7535935?v=3","gravatar_id":"","url":"https://api.github.com/users/spatie","html_url":"https://github.com/spatie","followers_url":"https://api.github.com/users/spatie/followers","following_url":"https://api.github.com/users/spatie/following{/other_user}","gists_url":"https://api.github.com/users/spatie/gists{/gist_id}","starred_url":"https://api.github.com/users/spatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatie/subscriptions","organizations_url":"https://api.github.com/users/spatie/orgs","repos_url":"https://api.github.com/users/spatie/repos","events_url":"https://api.github.com/users/spatie/events{/privacy}","received_events_url":"https://api.github.com/users/spatie/received_events","type":"Organization","site_admin":false},"repo":{"id":61802818,"name":"laravel-activitylog","full_name":"spatie/laravel-activitylog","owner":{"login":"spatie","id":7535935,"avatar_url":"https://avatars.githubusercontent.com/u/7535935?v=3","gravatar_id":"","url":"https://api.github.com/users/spatie","html_url":"https://github.com/spatie","followers_url":"https://api.github.com/users/spatie/followers","following_url":"https://api.github.com/users/spatie/following{/other_user}","gists_url":"https://api.github.com/users/spatie/gists{/gist_id}","starred_url":"https://api.github.com/users/spatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatie/subscriptions","organizations_url":"https://api.github.com/users/spatie/orgs","repos_url":"https://api.github.com/users/spatie/repos","events_url":"https://api.github.com/users/spatie/events{/privacy}","received_events_url":"https://api.github.com/users/spatie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spatie/laravel-activitylog","description":"Log activity inside your Laravel app","fork":false,"url":"https://api.github.com/repos/spatie/laravel-activitylog","forks_url":"https://api.github.com/repos/spatie/laravel-activitylog/forks","keys_url":"https://api.github.com/repos/spatie/laravel-activitylog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spatie/laravel-activitylog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spatie/laravel-activitylog/teams","hooks_url":"https://api.github.com/repos/spatie/laravel-activitylog/hooks","issue_events_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/events{/number}","events_url":"https://api.github.com/repos/spatie/laravel-activitylog/events","assignees_url":"https://api.github.com/repos/spatie/laravel-activitylog/assignees{/user}","branches_url":"https://api.github.com/repos/spatie/laravel-activitylog/branches{/branch}","tags_url":"https://api.github.com/repos/spatie/laravel-activitylog/tags","blobs_url":"https://api.github.com/repos/spatie/laravel-activitylog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spatie/laravel-activitylog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spatie/laravel-activitylog/git/refs{/sha}","trees_url":"https://api.github.com/repos/spatie/laravel-activitylog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spatie/laravel-activitylog/statuses/{sha}","languages_url":"https://api.github.com/repos/spatie/laravel-activitylog/languages","stargazers_url":"https://api.github.com/repos/spatie/laravel-activitylog/stargazers","contributors_url":"https://api.github.com/repos/spatie/laravel-activitylog/contributors","subscribers_url":"https://api.github.com/repos/spatie/laravel-activitylog/subscribers","subscription_url":"https://api.github.com/repos/spatie/laravel-activitylog/subscription","commits_url":"https://api.github.com/repos/spatie/laravel-activitylog/commits{/sha}","git_commits_url":"https://api.github.com/repos/spatie/laravel-activitylog/git/commits{/sha}","comments_url":"https://api.github.com/repos/spatie/laravel-activitylog/comments{/number}","issue_comment_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues/comments{/number}","contents_url":"https://api.github.com/repos/spatie/laravel-activitylog/contents/{+path}","compare_url":"https://api.github.com/repos/spatie/laravel-activitylog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spatie/laravel-activitylog/merges","archive_url":"https://api.github.com/repos/spatie/laravel-activitylog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spatie/laravel-activitylog/downloads","issues_url":"https://api.github.com/repos/spatie/laravel-activitylog/issues{/number}","pulls_url":"https://api.github.com/repos/spatie/laravel-activitylog/pulls{/number}","milestones_url":"https://api.github.com/repos/spatie/laravel-activitylog/milestones{/number}","notifications_url":"https://api.github.com/repos/spatie/laravel-activitylog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spatie/laravel-activitylog/labels{/name}","releases_url":"https://api.github.com/repos/spatie/laravel-activitylog/releases{/id}","deployments_url":"https://api.github.com/repos/spatie/laravel-activitylog/deployments","created_at":"2016-06-23T12:17:12Z","updated_at":"2016-10-08T16:34:48Z","pushed_at":"2016-10-08T22:28:14Z","git_url":"git://github.com/spatie/laravel-activitylog.git","ssh_url":"git@github.com:spatie/laravel-activitylog.git","clone_url":"https://github.com/spatie/laravel-activitylog.git","svn_url":"https://github.com/spatie/laravel-activitylog","homepage":"https://murze.be/2016/06/package-log-activity-laravel-app/","size":130,"stargazers_count":387,"watchers_count":387,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":4,"forks":60,"open_issues":4,"watchers":387,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86"},"html":{"href":"https://github.com/spatie/laravel-activitylog/pull/86"},"issue":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/issues/86"},"comments":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/spatie/laravel-activitylog/statuses/2dcdfa7660a0292e0198846c50bd7cf159de96d3"}}}}
{"actor":{"display_login":"freekmurze"}}