Don't skip `else` with octane (opens in new tab)
I came across a subtle Octane but last week. We needed to disable Inertia’s history encryption in some places in the app. By default, it’s enabled everywhere. So we added a route check to the middleware to turn it off. class HandleInertiaRequests { public function …
Read the original article