xshop
xshop copied to clipboard
Need to check invoke for lang
Need to check this controllers and routes:
https://github.com/4xmen/xshop/blob/main/routes/web.php#L341
I have use some trick for other routes like this:
public function ticketLang($lang, Ticket $ticket)
{
return $this->ticket($ticket);
}
public function ticket(Ticket $ticket)
{
if ($ticket->customer_id != auth('customer')->id()) {
return abort(403);
}
return view('website.ticket', compact('ticket'));
}
but I don't have any idea for this