Skip to content

Commit

Permalink
Fixed bad example in mass assignment guide
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Feb 1, 2014
1 parent 807223e commit 745030b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ Using the same `attributes` property you can massively assign data from associat

```php
$attributes = [
'title' => 'Model attributes',
'created_at' => time(),
'title' => 'Massive assignment example',
'body' => 'Never allow assigning attributes that are not meant to be assigned.',
];
$post->attributes = $attributes;
```
Expand Down

0 comments on commit 745030b

Please sign in to comment.