回答編集履歴
1
追記
answer
CHANGED
@@ -4,4 +4,6 @@
|
|
4
4
|
{
|
5
5
|
return $this->belongsTo('App\User', 'u_id');
|
6
6
|
}
|
7
|
-
```
|
7
|
+
```
|
8
|
+
|
9
|
+
[https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#one-to-one](https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#one-to-one)
|