What are Macros in Laravel?

Posted by Andre Scott | Updated on

Macros are a way to reduce the lines of code a developer has to write and can be traditionally thought of as “shortcuts”. Laravel generally uses macros to add, or inject, functionality into various classes at runtime.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers