Bagisto Forum

    Bagisto

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

    The logout method has $id defined, but the value passed is the redirect destination?

    General Discussion
    2
    2
    95
    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.
    • T
      tmss last edited by tmss

      Always sorry.
      Thanks for your help.

      It looks like you are not passing a value for $id in the logout section.
      The value I am receiving is

      Webkul/Shop/src/Routes/customer-routes.php
      which is set in

      "redirect": "shop.customer.session.index"
      

      It looks like this

      Webkul/Shop/src/Http/Controllers/Customer/SessionController.php

          public function destroy($id)
          {
              auth()->guard('customer')->logout();
      
              Event::dispatch('customer.after.logout', $id);
      
              return redirect()->route('shop.home.index'); }
          }
      }
      

      Is there any particular problem without $id?

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by Rishabh-Webkul

        @tmss said in The logout method has $id defined, but the value passed is the redirect destination?:

        Is there any particular problem without $id?

        No, There is no problem with this because this event didn't get listen.

        Event.png

        Thanks & Regards..!!

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