New routes for customer doesn`t works
-
Hi, I have the following route and the following function, but when I use it in the url it gives me a redirect to the page index
RouteRoute::post('profile/showPriceWithoutFidelityGroup/{id}', 'Webkul\Customer\Http\Controllers\CustomerController@viewPriceWithoutFidelityGroup')->defaults('_config', [ 'redirect' => 'customer.profile.index' ])->name('customer.profile.viewPriceWithoutFidelityGroup');
Controller
public function showPriceWithoutFidelityGroup(Request $request, $id) { $this->customerRepository->showPriceWithoutFidelityGroup($request, $id); return redirect()->route('customer.session.index'); }
-
Hi @LilD,
Run
php artisan config:cache
orphp artisan optimize
.