Use PHP 8 attributes to register routes in a Laravel app. This package provides annotations to automatically register routes. If you are using a directory structure where you co-locate multiple types of files in the same directory and want to be more specific about which files are checked for route attributes, you can use the patterns and not_patterns options. For example, if you are co-locating your tests with your controllers you could use the patterns option to only look in controller files, or you could use not_patterns to configure it to not look in test files for route attributes.
Features
- Documentation available
- Testing available
- Examples available
- Specify a domain from a config key
- Add middleware
- Use multiple verbs
Categories
FrameworksLicense
MIT LicenseFollow Laravel Route Attributes
You Might Also Like
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Laravel Route Attributes!