diff --git a/app/admin/requests/Allergen.php b/app/admin/requests/Allergen.php index ac0a224411..64020b0288 100644 --- a/app/admin/requests/Allergen.php +++ b/app/admin/requests/Allergen.php @@ -18,7 +18,7 @@ public function attributes() public function rules() { return [ - 'name' => ['required', 'between:2,128', 'unique:allergens'], + 'name' => ['required', 'between:2,128'], 'description' => ['min:2'], 'status' => ['boolean'], ]; diff --git a/app/admin/requests/Category.php b/app/admin/requests/Category.php index 49cf224ea8..1cb94c12e2 100644 --- a/app/admin/requests/Category.php +++ b/app/admin/requests/Category.php @@ -22,7 +22,7 @@ public function attributes() public function rules() { return [ - 'name' => ['required', 'between:2,128', 'unique:categories'], + 'name' => ['required', 'between:2,128'], 'description' => ['min:2'], 'permalink_slug' => ['alpha_dash', 'max:255'], 'parent_id' => ['nullable', 'integer'], diff --git a/app/admin/requests/Location.php b/app/admin/requests/Location.php index 5564f1cac1..ecb3768b72 100644 --- a/app/admin/requests/Location.php +++ b/app/admin/requests/Location.php @@ -32,7 +32,7 @@ public function attributes() public function rules() { return [ - 'location_name' => ['required', 'between:2,32', 'unique:locations'], + 'location_name' => ['required', 'between:2,32'], 'location_email' => ['required', 'email:filter', 'max:96'], 'location_telephone' => ['sometimes'], 'location_address_1' => ['required', 'between:2,128'], diff --git a/app/admin/requests/Mealtime.php b/app/admin/requests/Mealtime.php index 7c1ceabeff..812c5a2b95 100644 --- a/app/admin/requests/Mealtime.php +++ b/app/admin/requests/Mealtime.php @@ -20,7 +20,7 @@ public function attributes() public function rules() { return [ - 'mealtime_name' => ['required', 'between:2,128', 'unique:mealtimes'], + 'mealtime_name' => ['required', 'between:2,128'], 'start_time' => ['required', 'valid_time'], 'end_time' => ['required', 'valid_time'], 'mealtime_status' => ['required', 'boolean'], diff --git a/app/admin/requests/Menu.php b/app/admin/requests/Menu.php index 1aae4cdf8a..7722ed4b61 100644 --- a/app/admin/requests/Menu.php +++ b/app/admin/requests/Menu.php @@ -27,7 +27,7 @@ public function attributes() public function rules() { return [ - 'menu_name' => ['required', 'between:2,255', 'unique:menus'], + 'menu_name' => ['required', 'between:2,255'], 'menu_description' => ['between:2,1028'], 'menu_price' => ['required', 'numeric', 'min:0'], 'categories.*' => ['sometimes', 'required', 'integer'], diff --git a/app/admin/requests/Table.php b/app/admin/requests/Table.php index 35be8a339a..67f4ae730b 100644 --- a/app/admin/requests/Table.php +++ b/app/admin/requests/Table.php @@ -24,7 +24,7 @@ public function attributes() public function rules() { return [ - 'table_name' => ['required', 'min:2', 'max:255', 'unique:tables'], + 'table_name' => ['required', 'min:2', 'max:255'], 'min_capacity' => ['required', 'integer', 'min:1', 'lte:max_capacity'], 'max_capacity' => ['required', 'integer', 'min:1', 'gte:min_capacity'], 'extra_capacity' => ['required', 'integer'],