It is a field unique verification, in addition to itself, there are soft deleted records
闭关修行中......
Use the following method
'email' => Rule::unique('users')->where(function ($query) { $query->whereNotNull('deleted_at')->whereNot('id', 4); })
Refer to the official documentation https://laravel.com/docs/5.4/...
Use the following method
Refer to the official documentation https://laravel.com/docs/5.4/...