Registry /
utility / lumphp-laravel-macroable
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Macroable
✓ use Illuminate\Support\Traits\Macroable;
Add macros to any class using the trait.
use Illuminate\Support\Traits\Macroable;
class MyClass {
use Macroable;
}
MyClass::macro('hello', function() {
return 'Hello';
});
echo MyClass::hello();
Debug
Known issues
No known issues recorded.
Upgrade
Version history
8.36.2latest on Packagist
Audit
Dependencies
No dependency data recorded yet.