Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    New routes for customer doesn`t works

    General Discussion
    2
    2
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LilD last edited by LilD

      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
      Route

       Route::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');
          }
      
      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @LilD,

        Run php artisan config:cache or php artisan optimize.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post