File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/Webkul/Admin/src/Http/Controllers/Product Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ public function store(AttributeForm $request)
6363 $ product = $ this ->productRepository ->create (request ()->all ());
6464
6565 Event::dispatch ('product.create.after ' , $ product );
66-
66+
6767 session ()->flash ('success ' , trans ('admin::app.products.create-success ' ));
6868
69- return redirect ()->back ( );
69+ return redirect ()->route ( ' admin.products.index ' );
7070 }
7171
7272 /**
@@ -96,7 +96,7 @@ public function update(AttributeForm $request, $id)
9696 $ product = $ this ->productRepository ->update (request ()->all (), $ id );
9797
9898 Event::dispatch ('product.update.after ' , $ product );
99-
99+
100100 session ()->flash ('success ' , trans ('admin::app.products.update-success ' ));
101101
102102 return redirect ()->route ('admin.products.index ' );
@@ -125,7 +125,7 @@ public function search()
125125 public function destroy ($ id )
126126 {
127127 $ this ->productRepository ->findOrFail ($ id );
128-
128+
129129 try {
130130 Event::dispatch ('settings.products.delete.before ' , $ id );
131131
You can’t perform that action at this time.
0 commit comments