{"action":"created","issue":{"url":"https://api.github.com/repos/Zizaco/entrust/issues/306","labels_url":"https://api.github.com/repos/Zizaco/entrust/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/Zizaco/entrust/issues/306/comments","events_url":"https://api.github.com/repos/Zizaco/entrust/issues/306/events","html_url":"https://github.com/Zizaco/entrust/issues/306","id":77613927,"number":306,"title":"Deleting a user with the SoftDelete trait in Laravel 5 will clear its roles","user":{"login":"mengidd","id":5988766,"avatar_url":"https://avatars.githubusercontent.com/u/5988766?v=3","gravatar_id":"","url":"https://api.github.com/users/mengidd","html_url":"https://github.com/mengidd","followers_url":"https://api.github.com/users/mengidd/followers","following_url":"https://api.github.com/users/mengidd/following{/other_user}","gists_url":"https://api.github.com/users/mengidd/gists{/gist_id}","starred_url":"https://api.github.com/users/mengidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengidd/subscriptions","organizations_url":"https://api.github.com/users/mengidd/orgs","repos_url":"https://api.github.com/users/mengidd/repos","events_url":"https://api.github.com/users/mengidd/events{/privacy}","received_events_url":"https://api.github.com/users/mengidd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Zizaco/entrust/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-18T11:15:17Z","updated_at":"2015-07-24T15:09:35Z","closed_at":null,"body":"If you delete a user with the SoftDeletes trait in Laravel 5 while using Entrust, it will clear the roles of the user. It's not meant to, but EntrustUserTrait is not updated for Laravel 5s trait naming conventions.\r\n\r\nLine 38-40 in EntrustUserTrait.php you can find this:\r\n```\r\nif (!method_exists(Config::get('auth.model'), 'bootSoftDeletingTrait')) {\r\n    $user->roles()->sync([]);\r\n}\r\n```\r\n\r\nIn Laravel 5 the bootSoftDeletingTrait method was renamed to bootSoftDeletes.\r\n\r\nCan we please get a fix for this? :)"},"comment":{"url":"https://api.github.com/repos/Zizaco/entrust/issues/comments/124553802","html_url":"https://github.com/Zizaco/entrust/issues/306#issuecomment-124553802","issue_url":"https://api.github.com/repos/Zizaco/entrust/issues/306","id":124553802,"user":{"login":"yoramdelangen","id":1531885,"avatar_url":"https://avatars.githubusercontent.com/u/1531885?v=3","gravatar_id":"","url":"https://api.github.com/users/yoramdelangen","html_url":"https://github.com/yoramdelangen","followers_url":"https://api.github.com/users/yoramdelangen/followers","following_url":"https://api.github.com/users/yoramdelangen/following{/other_user}","gists_url":"https://api.github.com/users/yoramdelangen/gists{/gist_id}","starred_url":"https://api.github.com/users/yoramdelangen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoramdelangen/subscriptions","organizations_url":"https://api.github.com/users/yoramdelangen/orgs","repos_url":"https://api.github.com/users/yoramdelangen/repos","events_url":"https://api.github.com/users/yoramdelangen/events{/privacy}","received_events_url":"https://api.github.com/users/yoramdelangen/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T15:09:35Z","updated_at":"2015-07-24T15:09:35Z","body":"It is pretty easy to resolve.. \r\nCurrently i had to make a dirty hack within my model by creating a `bootSoftDeletingTrait` method. Until the solution is made."}}