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 ...@@ -237,8 +237,8 @@ Using the same `attributes` property you can massively assign data from associat
```php ```php
$attributes = [ $attributes = [
'title' => 'Model attributes', 'title' => 'Massive assignment example',
'created_at' => time(), 'body' => 'Never allow assigning attributes that are not meant to be assigned.',
]; ];
$post->attributes = $attributes; $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