Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7e904f

Browse files
committed
add boolean
1 parent dce6a71 commit e7e904f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Eloquent/Concerns/GuardsAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function isFillable($key)
163163
*/
164164
public function isGuarded($key)
165165
{
166-
if (strpos($key, '->')) {
166+
if (strpos($key, '->') !== false) {
167167
$key = Str::before($key, '->');
168168
}
169169

0 commit comments

Comments
 (0)