Commit 745030b1 by Alexander Makarov

Fixed bad example in mass assignment guide

parent 807223ef
......@@ -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;
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment