質問するログイン新規登録

回答編集履歴

1

コード微修正

2017/10/16 09:57

投稿

aro10
aro10

スコア4106

answer CHANGED
@@ -8,9 +8,9 @@
8
8
  ->get();
9
9
 
10
10
  foreach($users as $user){
11
- if($user->counts > 10){ $user->counts = 0;)
11
+ if($user->counts > 10){ $user->counts = 0;}
12
- if($user->item_counts > 10){ $user->item_counts = 0;)
12
+ if($user->item_counts > 10){ $user->item_counts = 0;}
13
- if($user->book_counts > 10){ $user->book_counts = 0;)
13
+ if($user->book_counts > 10){ $user->book_counts = 0;}
14
14
 
15
15
  DB::table('users')
16
16
  ->where("id",$user->id)