The logout method has $id defined, but the value passed is the redirect destination?
-
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 isWebkul/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?
-
@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.
Thanks & Regards..!!