Browse Source

Fixed bad example in mass assignment guide

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
745030b1a1
  1. 4
      docs/guide/model.md

4
docs/guide/model.md

@ -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;
```

Loading…
Cancel
Save