Commit 8542f60a by Alexander Makarov

And another fix to mass assignment example

parent b94532e2
......@@ -240,7 +240,7 @@ $attributes = [
'title' => 'Massive assignment example',
'body' => 'Never allow assigning attributes that are not meant to be assigned.',
];
$post->attributes = $attributes;
$postForm->attributes = $attributes;
```
In the code above we're assigning corresponding data to model attributes named as array keys. The key difference from mass
......
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