Laravel 5 Macros: Creating Callback Macros
…l be executed when the macro function is invoked. To create a callback function macro, first locate the desired class to create a macro for. In the following examples, a rot13 macro will be created for the \Illuminate\Support\Str class. The first...