質問編集履歴
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,18 +17,7 @@
|
|
17
17
|
|
18
18
|
### リレーション
|
19
19
|
|
20
|
-
|
20
|
+
|
21
|
-
public function create()
|
22
|
-
{
|
23
|
-
$user_id = Auth::id();
|
24
|
-
if (userMotivation::where('user_id', $user_id)->exists()) {
|
25
|
-
return redirect()->route('usermotivations.index')->with(
|
26
|
-
'message', 'ボディメイク目標は既に登録済みです'
|
27
|
-
);
|
28
|
-
}
|
29
|
-
return view('usermotivations.create');
|
30
|
-
}
|
31
|
-
```
|
32
21
|
|
33
22
|
```Model
|
34
23
|
class IdealWeight extends Model
|