Post

Let me introduce you to Tempest’s heartbeat: discovery. It’s what sets Tempest apart from any other framework. Discovery allows Tempest to scan all files, read the code, and register that code in the right places. It’s used for routing, console commands, event listeners, and a lot more

Discover works by scanning all project files and passing them to Discovery classes. These are relatively simple classes that know how what to do with specific files.

0 reposts1 like

Worried about performance? Discovery is heavily optimised, even for local development. You won’t notice it’s there.

I guess "you can structure your project any way you like" works both ways - there's nothing to force you structure a way you don't want, but there's equally nothing to force you to structure it how you do want?

You can make a mess by not having any coherent structure, things will still work but it may be hard to manually navigate your project. Possibly where having an IDE that discovery tools at least as good as Tempest to discover where you (or you colleagues) have put things will be necessary.