Fixed bug in customer group which was allowing admin to create groups with same code

This commit is contained in:
Prashant Singh 2019-08-09 14:26:49 +05:30
parent a72535db23
commit 0f2a3c4f02
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class CustomerGroupController extends Controller
{
$this->validate(request(), [
'name' => 'string|required',
'code' => 'string|unique:customer_groups,code'
]);
$data = request()->all();