回答編集履歴

4

Edit

2021/10/03 23:39

投稿

kai0310
kai0310

スコア2076

test CHANGED
@@ -1,6 +1,4 @@
1
1
  ```PHP
2
-
3
- // $users = User::all(); //テーブルの全ての情報を取得し、$users変数に代入
4
2
 
5
3
  $users = User::whereNotIn('id', [Auth::id()])->get();
6
4
 

3

fix

2021/10/03 23:39

投稿

kai0310
kai0310

スコア2076

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // $users = User::all(); //テーブルの全ての情報を取得し、$users変数に代入
4
4
 
5
- $users = User::whereNotIn('id', Auth::id())->get();
5
+ $users = User::whereNotIn('id', [Auth::id()])->get();
6
6
 
7
7
  ```
8
8
 

2

fix

2021/10/03 13:03

投稿

kai0310
kai0310

スコア2076

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // $users = User::all(); //テーブルの全ての情報を取得し、$users変数に代入
4
4
 
5
- $users = User::whereNotIn('_id', Auth::id())->get();
5
+ $users = User::whereNotIn('id', Auth::id())->get();
6
6
 
7
7
  ```
8
8
 

1

fix

2021/10/03 09:34

投稿

kai0310
kai0310

スコア2076

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // $users = User::all(); //テーブルの全ての情報を取得し、$users変数に代入
4
4
 
5
- $users = User::whereNotIn('user_id', Auth::id())->get();
5
+ $users = User::whereNotIn('_id', Auth::id())->get();
6
6
 
7
7
  ```
8
8