From 6bd87e29f1aec4b93151aca6748fb33f2e1e3ac4 Mon Sep 17 00:00:00 2001 From: Ramin Firooz Date: Thu, 2 Aug 2018 09:38:42 +0430 Subject: [PATCH] Update 02_data_mutation.md --- 05_models/02_data_mutation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05_models/02_data_mutation.md b/05_models/02_data_mutation.md index a514ee6..b1e5661 100644 --- a/05_models/02_data_mutation.md +++ b/05_models/02_data_mutation.md @@ -76,12 +76,12 @@ As an alternative to quickly remove massive sets of entities `remove()` together conditions can be used. The `$conditions` parameter is first and is an array of key/value pairs representing the scope of the records or documents to be deleted. -``` +```php // Delete all posts!! $success = Posts::remove(); // Delete drafted posts only. -Posts::remove(['is_draft => true]); +Posts::remove(['is_draft' => true]); ```