Laravel 5 Macros: Determining if a Class Has a Macro Defined With hasMacro
The hasMacro method is used to determine if a given class has a macro with the name $macro defined. It returns true if the $macro is found, otherwise it returns false .The signature of the hasMacro method is: 1 public static function hasMacro ( 2...