{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10028","labels_url":"https://api.github.com/repos/laravel/framework/issues/10028/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10028/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10028/events","html_url":"https://github.com/laravel/framework/issues/10028","id":102773726,"number":10028,"title":"$model->save(['timestamps' => false]) has no effect.","user":{"login":"websanova","id":1645771,"avatar_url":"https://avatars.githubusercontent.com/u/1645771?v=3","gravatar_id":"","url":"https://api.github.com/users/websanova","html_url":"https://github.com/websanova","followers_url":"https://api.github.com/users/websanova/followers","following_url":"https://api.github.com/users/websanova/following{/other_user}","gists_url":"https://api.github.com/users/websanova/gists{/gist_id}","starred_url":"https://api.github.com/users/websanova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websanova/subscriptions","organizations_url":"https://api.github.com/users/websanova/orgs","repos_url":"https://api.github.com/users/websanova/repos","events_url":"https://api.github.com/users/websanova/events{/privacy}","received_events_url":"https://api.github.com/users/websanova/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laravel/framework/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/laravel/framework/labels/database","name":"database","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T11:36:14Z","updated_at":"2015-12-06T22:06:40Z","closed_at":null,"body":"Not an Eloquent expert, but maybe some bug in the Builder.\r\n\r\nif you look at: `Illuminate\\Database\\Eloquent\\Model@performUpdate`\r\n\r\nThere is a line `$this->setKeysForSaveQuery($query)->update($dirty);`\r\n\r\nWhich from `setKeysForSaveQuery` receives a `Builder` object.\r\n\r\nThe update is being called from that` Builder` which seems to ONLY check the models `timestamps` field and no longer the `timestamps` argument passed in `save()`.\r\n\r\nInside of: `Illuminate\\Database\\Eloquent\\Builder@update`\r\n\r\nThere is a line `return $this->query->update($this->addUpdatedAtColumn($values));`\r\n\r\nWhich if you follow along will set the update field even though we passed the argument in. It's only checking the `$model->timestamps` parameter.\r\n\r\nI tried it in 5.1.2 and 5.1.10 \r\n\r\n~~~\r\nnamespace App\\Models;\r\n\r\nclass Language extends \\Illuminate\\Database\\Eloquent\\Model\r\n{\r\n\r\n}\r\n~~~\r\n\r\n~~~\r\n$router->get('/test', function () {\r\n    $model = \\App\\Models\\Language::find(1);\r\n\r\n    $model->words_total = $model->words_total + 1;\r\n    $model->save(['timestamps' => false]);\r\n\r\n    return 'boo';\r\n});\r\n~~~"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/162353006","html_url":"https://github.com/laravel/framework/issues/10028#issuecomment-162353006","issue_url":"https://api.github.com/repos/laravel/framework/issues/10028","id":162353006,"user":{"login":"vlakoff","id":544424,"avatar_url":"https://avatars.githubusercontent.com/u/544424?v=3","gravatar_id":"","url":"https://api.github.com/users/vlakoff","html_url":"https://github.com/vlakoff","followers_url":"https://api.github.com/users/vlakoff/followers","following_url":"https://api.github.com/users/vlakoff/following{/other_user}","gists_url":"https://api.github.com/users/vlakoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vlakoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlakoff/subscriptions","organizations_url":"https://api.github.com/users/vlakoff/orgs","repos_url":"https://api.github.com/users/vlakoff/repos","events_url":"https://api.github.com/users/vlakoff/events{/privacy}","received_events_url":"https://api.github.com/users/vlakoff/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T22:06:40Z","updated_at":"2015-12-06T22:06:40Z","body":"Only for the sake of demonstration, here is [yet another attempt](https://github.com/laravel/framework/compare/5.1...vlakoff:eloquent-save-notimestamps-2).\r\n\r\nJust to show how it becomes clumsy (in particular concerning the tests) to repair the functionality without making any change to the API."}}