Commit 314cc8ab by Alexander Makarov

Merge pull request #2553 from xmasterpx/patch-1

Typo fixes for $user->attributes
parents c79d233e a3580e2d
...@@ -331,7 +331,7 @@ For the code above mass assignment will be allowed stsrictly according to `scena ...@@ -331,7 +331,7 @@ For the code above mass assignment will be allowed stsrictly according to `scena
$user = User::find(42); $user = User::find(42);
$data = ['password' => '123']; $data = ['password' => '123'];
$user->attributes = $data; $user->attributes = $data;
print_r($data); print_r($user->attributes);
``` ```
Will give you empty array because there's no default scenario defined in our `scenarios()`. Will give you empty array because there's no default scenario defined in our `scenarios()`.
...@@ -345,7 +345,7 @@ $data = [ ...@@ -345,7 +345,7 @@ $data = [
'hashcode' => 'test', 'hashcode' => 'test',
]; ];
$user->attributes = $data; $user->attributes = $data;
print_r($data); print_r($user->attributes);
``` ```
Will give you the following: Will give you the following:
...@@ -386,7 +386,7 @@ $data = [ ...@@ -386,7 +386,7 @@ $data = [
'password' => '123', 'password' => '123',
]; ];
$user->attributes = $data; $user->attributes = $data;
print_r($data); print_r($user->attributes);
``` ```
Will give you the following: Will give you the following:
......
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