A new feature just merged into Laravel and included in the v5.4.8 update is the ability to define Macros for Eloquent Relationships. To better show how this feature works here is a screenshot by Jordan Pittman who created the original pull request: Here is that same example in a copy and paste friendly version. AppServiceProvider …
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Laravel Senior Developer
Remote, Canada Only
BeMo Academic Consulting
- Senior Fullstack Developer / Architect (w/m/d)
Remote / Munich - Germany
- Medior full stack developer (Laravel)
Deventer (or remote) in the Netherlands, Dutch speaking required.
- Senior Full Stack PHP Developer (Laravel)
- Senior Laravel Developer