diff --git a/readme.md b/readme.md index 2743f54..2e7c783 100755 --- a/readme.md +++ b/readme.md @@ -468,16 +468,6 @@ $post->title = 'New Post Title'; $post->save(); ``` -##### Mass Updates - -Updates can also be performed against any number of models that match a given query. In this example, all posts that are active and have a views lower than 5 will be marked as archived: - -```php -App\post::where('active', 1) - ->where('views', "<", 5) - ->update(['archived' => 1]); -``` - ##### Deleting Models To delete a model, call the `delete()` method on a model instance: @@ -488,14 +478,6 @@ $post = App\Post::find(1); $post->delete(); ``` -##### Deleting Models By Query - -Of course, you may also run a delete statement on a set of models. In this example, we will delete all posts that are marked as inactive. Like mass updates: - -```php -$deletedDocuments = App\Post::where('active', 0)->delete(); -``` - ##### Query Scopes Scopes allow you to define common sets of constraints that you may easily re-use throughout your application. For example, you may need to frequently retrieve all posts that are considered "popular". To define a scope, simply prefix an Eloquent model method with scope.