-
Description:Providing a User::where('in_black_list', true)->get()->delete(); |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
@sisve Sorry! I forgot the |
Beta Was this translation helpful? Give feedback.
-
|
Just use User::where('in_black_list', true)->get()->each->delete();https://laravel.com/docs/5.6/collections#higher-order-messages |
Beta Was this translation helpful? Give feedback.
-
|
Or just |
Beta Was this translation helpful? Give feedback.
-
Helpful. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Just use
->each():https://laravel.com/docs/5.6/collections#higher-order-messages