Skip to content

Commit b87e2bf

Browse files
committed
update example
1 parent af0228a commit b87e2bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class UserModel extends Model
2121

2222
protected $relations = [
2323
// one avatar - relation type, model, foreign key, local key
24-
'avatar' => ['hasOne', AvatarModel::class]//, 'user_id', 'id'],
24+
'avatar' => ['hasOne', AvatarModel::class], //'user_id', 'id'],
2525
// many social links - relation type, model, foreign key, local key
26-
'links' => ['hasMany', LinkModel::class]//, 'user_id', 'id'],
26+
'links' => ['hasMany', LinkModel::class], //'user_id', 'id'],
2727
];
2828
}
2929
```

0 commit comments

Comments
 (0)