Level 1
My bad, I though about it and found a solution. I simply added a route in my route.php, and that has overrode the spark method.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys, I'm building an app that contains sensitive information. The app will eventually have a support team, but they should never impersonate a user unless the user has agreed of this. To enforce that, I would like to rewrite the impersonation controller in spark, but I'm not sure I can do that. Spark's swap method does not seem to be helping.
Any ideas ? Thanks in advance.
My bad, I though about it and found a solution. I simply added a route in my route.php, and that has overrode the spark method.
Please or to participate in this conversation.