How to detect if a plugin is loaded in the site or in the panel?

Well, I wanted to use that functionality to register a route only when you’re inside the panel because that’s where I need it. However, in my other question, you recommended the custom API routes which seem to be a better solution. Those routes would be available outside the panel as well, but at least they’ll be protected.

I’m pretty sure that site/panel detection could come in handy for something, though.

2 Likes