Skip to content

Commit ee8f848

Browse files
author
game5413
committed
update README.md
1 parent cd68a72 commit ee8f848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class User extends Model
8888

8989
public function role()
9090
{
91-
$this->belongsTo(Role::class);
91+
return $this->belongsTo(Role::class);
9292
}
9393
//rest of your code on model
9494
}
@@ -113,7 +113,7 @@ class User extends Model
113113

114114
public function role()
115115
{
116-
$this->belongsTo(Role::class);
116+
return $this->belongsTo(Role::class);
117117
}
118118
//rest of your code on model
119119
}

0 commit comments

Comments
 (0)