Developing on Filament and Filament Plugin locally causes duplicate classes of same namespaces
Hi, I am running a local fork of Filament in my app, and point to this in my composer.json file.
Then I am also running a local fork of the Filament Google Maps plugin, which introduces it's own Filament instance it seems, which breaks my overrides of methods in classes from my initial Filament package fork.
I am including these in my composer.json like this:
And I am overriding the Filament\Tables\Concerns\CanReorderRecords::reorderTable method which I have customized in my Filament package fork like this:
Where when I cmd + hover over
parent::reorderTable
, I see the following definitions:
And when I cmd + click parent::reorderTable
, I navigated to:
Instead of to:
How can I make sure that I override the reorderTable
method in the correct package?Solution:Jump to solution
Doing this:
```
rm -r filament filament-google-maps/;
git submodule init
git submodule update --recursive --remote...
1 Reply
Solution
Doing this:
Seemed to make my override point to the correct class again.
I think it might have been due to having ran
composer install
on the forked filament package and filament plugin directories.