Skip to content

Commit 3ab3e70

Browse files
committed
formatting
1 parent 1665cb6 commit 3ab3e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

upgrade.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ However, in Laravel 5.5, the alias will be used exactly as it is given. If you w
139139
$users = User::withCount('foo as bar_count')->get();
140140

141141

142-
#### Model methods & attribute names
142+
#### Model Methods & Attribute Names
143143

144-
To prevent accessing model private properties while using array access it's now not possible for you to have a method inside the model class with the same name as a model attribute or property, having this will throw exceptions while accessing the model attributes via array access `$user['name']` or using `data_get($user, 'name')`.
144+
To prevent accessing a model's private properties when using array access, it's no longer possible to have a model method with the same name as an attribute or property. Doing so will cause exceptions to be thrown when accessing the model's attributes via array access (`$user['name']`) or the `data_get` helper function.
145145

146146
### Exception Format
147147

@@ -325,7 +325,7 @@ When allowing the dynamic `__call` method to share variables with a view, these
325325
The `maximumVotes` variable may be accessed in the template like so:
326326

327327
{{ $maximumVotes }}
328-
328+
329329
#### `@php` Blade Directive
330330

331331
The `@php` blade directive no longer accepts inline tags. Instead, use the full form of the directive:

0 commit comments

Comments
 (0)