• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
114
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 10 Jul 2024, 08:36 10 Jul 2024, 08:35

    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 11 Jul 2024, 08:04 11 Jul 2024, 06:36

      @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
      1 out of 2
      • First post
        1/2
        Last post