What is the best/easiest way to overwrite a resource within a package?

I'm using the following 2 packages and would like to edit both resources:
"z3d0x/filament-logger": "^0.7.1"
"bezhansalleh/filament-exceptions": "^2.1",
"z3d0x/filament-logger": "^0.7.1"
"bezhansalleh/filament-exceptions": "^2.1",
This is the path for each: vendor/z3d0x/filament-logger/src/Resources/ActivityResource.php vendor/bezhansalleh/filament-exceptions/src/Resources/ExceptionResource.php
1 Reply
Coolman
Coolman3w ago
You can create your own resource and extend it from the one you want to edit Example: use path to vendor/z3d0x/filament-logger/src/Resources/ActivityResource.php; class MyResource extends ActivityResource