Skip to content

Commit

Permalink
small change in TaxonomyTermController
Browse files Browse the repository at this point in the history
  • Loading branch information
supundulara committed Oct 15, 2024
1 parent 5920226 commit 665f55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Backend/TaxonomyTermController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function store(Request $request, Taxonomy $taxonomy,TaxonomyTerm $taxonom
{
try {
$validatedData = $request->validate([
'code' => 'required',
'code' => 'required|unique:taxonomy_terms,code',
'name' => 'required',
'taxonomy_id' => 'required|exists:taxonomies,id',
'parent_id' => 'nullable|exists:taxonomy_terms,id',
Expand Down

0 comments on commit 665f55e

Please sign in to comment.