I'm proud to announce that our team has released a new package called https://spatie.be/docs/laravel-route-discovery. This package can be used to automatically discover and register routes by looking at your controllers and views. Of course, you can also still register routes like you're used to in a routes file.
All further examples assume that you've registered to discover routes for all methods of controller in the app_path('Http/Controllers') directory.
In addition to discovering routes for controllers, the package can also discover routes for a directory that contains Blade views.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.