Commit b2aaffee by MetalGuardian

Update model.md

parent c4af1569
...@@ -311,7 +311,7 @@ $attributes = [ ...@@ -311,7 +311,7 @@ $attributes = [
'content' => 'Never allow assigning attributes that are not meant to be assigned.', 'content' => 'Never allow assigning attributes that are not meant to be assigned.',
]; ];
$post->attributes = $attributes; $post->attributes = $attributes;
var_dump($attributes); var_dump($post->attributes);
``` ```
In the code above we're assigning corresponding data to model attributes named as array keys. The key difference from mass 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