{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12066","labels_url":"https://api.github.com/repos/laravel/framework/issues/12066/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12066/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12066/events","html_url":"https://github.com/laravel/framework/issues/12066","id":129726079,"number":12066,"title":"Eloquent soft delete inconsistent behaviour","user":{"login":"EvgeniyN","id":8381849,"avatar_url":"https://avatars.githubusercontent.com/u/8381849?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeniyN","html_url":"https://github.com/EvgeniyN","followers_url":"https://api.github.com/users/EvgeniyN/followers","following_url":"https://api.github.com/users/EvgeniyN/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniyN/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniyN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniyN/subscriptions","organizations_url":"https://api.github.com/users/EvgeniyN/orgs","repos_url":"https://api.github.com/users/EvgeniyN/repos","events_url":"https://api.github.com/users/EvgeniyN/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniyN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-29T10:27:32Z","updated_at":"2016-02-01T15:57:30Z","closed_at":"2016-01-30T11:00:12Z","body":"I spent a hour while catch my issue.\r\nThere are no notices in docs about this.\r\n\r\nShort example:\r\n`class SomeModel extends \\Eloquent{`\r\n`use SoftDeletes;`\r\n`public $table = 'some_table_withDeleted_at_column';`\r\n`}`\r\n`SomeModel::find($id)->delete(); // Perform soft delete`\r\n`SomeModel::whereId($id)->delete(); // Actually remove row from database`\r\n`SomeModel::destroy($id); // Perform soft delete`\r\n\r\n\r\nSo why EloquentQueryBuilder don't care about soft delete trait in model?\r\nMaybe we need to change EloquentQueryBuilder::delete() behaviour or at least notice about it in dosc?\r\nSry for my eng."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/178041373","html_url":"https://github.com/laravel/framework/issues/12066#issuecomment-178041373","issue_url":"https://api.github.com/repos/laravel/framework/issues/12066","id":178041373,"user":{"login":"acasar","id":6329543,"avatar_url":"https://avatars.githubusercontent.com/u/6329543?v=3","gravatar_id":"","url":"https://api.github.com/users/acasar","html_url":"https://github.com/acasar","followers_url":"https://api.github.com/users/acasar/followers","following_url":"https://api.github.com/users/acasar/following{/other_user}","gists_url":"https://api.github.com/users/acasar/gists{/gist_id}","starred_url":"https://api.github.com/users/acasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acasar/subscriptions","organizations_url":"https://api.github.com/users/acasar/orgs","repos_url":"https://api.github.com/users/acasar/repos","events_url":"https://api.github.com/users/acasar/events{/privacy}","received_events_url":"https://api.github.com/users/acasar/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T15:57:30Z","updated_at":"2016-02-01T15:57:30Z","body":"I suggest that you open a seperate ticket for that and provide a full exception and a snippet of relevant code, otherwise we can't help."}}