Skip to content

Commit a9ef0ca

Browse files
author
ahmadhuss
committed
refactor: Updated CategoryController store method
1 parent 1aa25d4 commit a9ef0ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/Http/Controllers/Api/CategoryController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,8 @@ public function show(Category $category){
3434

3535
// Post store
3636
public function store(StoreCategoryRequest $request) {
37-
try {
3837
$category = Category::create($request->all());
3938
return new CategoryResource($category);
40-
} catch (Illuminate\Database\QueryException $e) {
41-
42-
}
4339
}
4440

4541

0 commit comments

Comments
 (0)