Fixed bug in customer group which was allowing admin to create groups with same code
This commit is contained in:
parent
a72535db23
commit
0f2a3c4f02
|
|
@ -104,6 +104,7 @@ class CustomerGroupController extends Controller
|
|||
{
|
||||
$this->validate(request(), [
|
||||
'name' => 'string|required',
|
||||
'code' => 'string|unique:customer_groups,code'
|
||||
]);
|
||||
|
||||
$data = request()->all();
|
||||
|
|
|
|||
Loading…
Reference in New Issue