Macros are ready-made functions, made available by Scriptcase, to assist in the construction of our projects. Whether you are a basic, intermediate or advanced user of Scriptcase, the use of macros is essential.

In this article, we will tell you the main ways of creating custom macros and, in addition, show you one of the macros we created to facilitate debugging our applications.

If you want to test the function that we are using in this example yourself, just copy and paste this code into your new macro: This function scans variables with print_r, returning the content more clearly and organized.

Share your experience with us and tell us how the use of these macros helps in the day to day of your development.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
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. 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.
Community Partners