Hacker News new | past | comments | ask | show | jobs | submit login

For dev environments, the performance hit would be IMO acceptable, for prod you can generate routes already to not have to parse routes/web.php.

In theory if you have APCu or any other cache setup, you can use that to store routing information outside PHP, or just write it into a file. So only the first access is slow, then no longer and you can still manually scan if you can't find a function, controller or if you don't know the file involved.

It would atleast make code a lot cleaner.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: