質問編集履歴

1

Userのモデルも追加しました

2019/05/08 07:20

投稿

first_php
first_php

スコア20

test CHANGED
File without changes
test CHANGED
@@ -58,6 +58,32 @@
58
58
 
59
59
  }
60
60
 
61
+
62
+
63
+ class User extends Model
64
+
65
+ {
66
+
67
+ //
68
+
69
+ protected $table = 'users';
70
+
71
+
72
+
73
+ public function office()
74
+
75
+ {
76
+
77
+ return $this->hasOne('App\Office');
78
+
79
+ }
80
+
81
+
82
+
83
+ }
84
+
85
+
86
+
61
87
  ```
62
88
 
63
89