laravel验证唯一
```
use Illuminate\Validation\Rule;
'catalog_name' => ['required', 'string','max:10', Rule::unique('sales_catalog')->ignore(request('id'))->where(function ($query) {
$query->whereNotIn('id', [100]);
})],
'catalog_name' => ['required', 'string','max:10', Rule::exists('sales_catalog')->where(function ($query) {
$query->whereNotIn('id', [100]);
})],
```