Adam T
Adam T
FFilament
Created by Adam T on 5/22/2024 in #❓┊help
Created a fork of Filament-Fabricator but it broke
Hey guys, this might be a bit of an odd ask, but I've been having some troubles debugging this issue. I've forked filament-fabricator, and mode a few modifications to get it working with a multi-tenancy plugin I installed. https://github.com/ajmt93/filament-fabricator I had made the changes inside my project and it was working, and then I copied the modifications to the new repo, tried to pull them all in, but I keep getting the exception: Target class [filament-fabricator] does not exist. Share of stacktrace( https://flareapp.io/share/VmeN1lzP ) When going through the stack trace there is an error in the PageResource:
public static function getModel(): string

{

return FilamentFabricator::getPageModel();

}
public static function getModel(): string

{

return FilamentFabricator::getPageModel();

}
In my composer.json file I also added this to get the autoload working:
"repositories": [
{
"type": "package",
"package": {
"name": "z3d0x/filament-fabricator",
"version": "2",
"source": {
"url": "https://github.com/ajmt93/filament-fabricator",
"type": "git",
"reference": "2.x"
}
}
}
],
...
"autoload": {
"psr-4": {
...
"Z3d0X\\FilamentFabricator\\": "vendor/z3d0x/filament-fabricator/src/"
}
},
"repositories": [
{
"type": "package",
"package": {
"name": "z3d0x/filament-fabricator",
"version": "2",
"source": {
"url": "https://github.com/ajmt93/filament-fabricator",
"type": "git",
"reference": "2.x"
}
}
}
],
...
"autoload": {
"psr-4": {
...
"Z3d0X\\FilamentFabricator\\": "vendor/z3d0x/filament-fabricator/src/"
}
},
I am hoping to get this working on my project and then eventually rewrite things to work with broader multi-tenancy options. Any help would be appreciated. I'll have to review any messages tomorrow as I am just about to sleep, but thank you!
3 replies