Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions database/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@ You may also run a delete query on a set of models. In this example, we will del
$deletedRows = Flight::where('active', 0)->delete();
```

Deleting all records of a model:

```php
Flight::truncate();
```

> **NOTE**: It is important to mention that [model events](model#events) will not fire when deleting records directly from a query.

## Query scopes
Expand Down