We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa25d4 commit a9ef0caCopy full SHA for a9ef0ca
app/Http/Controllers/Api/CategoryController.php
@@ -34,12 +34,8 @@ public function show(Category $category){
34
35
// Post store
36
public function store(StoreCategoryRequest $request) {
37
- try {
38
$category = Category::create($request->all());
39
return new CategoryResource($category);
40
- } catch (Illuminate\Database\QueryException $e) {
41
-
42
- }
43
}
44
45
0 commit comments