回答編集履歴

2

修正

2020/05/18 09:14

投稿

退会済みユーザー
test CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  - $post->username = $auth->name
4
4
 
5
- + $post->username = $auth->user()->name
5
+ + $post->username = auth()->user()->name
6
6
 
7
7
  ```

1

修正

2020/05/18 09:13

投稿

退会済みユーザー
test CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  - $post->username = $auth->name
4
4
 
5
- + $post->username = auth()->name
5
+ + $post->username = $auth->user()->name
6
6
 
7
7
  ```