Adam T
Adam T
FFilament
Created by Adam T on 5/22/2024 in #❓┊help
Created a fork of Filament-Fabricator but it broke
So I think I've managed to narrow down the error to the package not being discovered in composer dump-autoload but it does install. I've never experienced this issue. I've tried to change the repository to use "vcs" for the type, but that didn't install properly either. Here is a chunk of the composer file in my main package:
"repositories": [
{
"type": "package",
"package": {
"name": "z3d0x/filament-fabricator",
"version": "2",
"source": {
"url": "https://github.com/ajmt93/filament-fabricator",
"type": "git",
"reference": "2.x"
}
}
}
],
"require": {
"php": "^8.2",
"andrewdwallo/filament-companies": "^4.0",
"filament/filament": "^3.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"pboivin/filament-peek": "^2.0",
"z3d0x/filament-fabricator": "2"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.29",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/",
"Z3d0X\\FilamentFabricator\\": "vendor/z3d0x/filament-fabricator/src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
"repositories": [
{
"type": "package",
"package": {
"name": "z3d0x/filament-fabricator",
"version": "2",
"source": {
"url": "https://github.com/ajmt93/filament-fabricator",
"type": "git",
"reference": "2.x"
}
}
}
],
"require": {
"php": "^8.2",
"andrewdwallo/filament-companies": "^4.0",
"filament/filament": "^3.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"pboivin/filament-peek": "^2.0",
"z3d0x/filament-fabricator": "2"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.29",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/",
"Z3d0X\\FilamentFabricator\\": "vendor/z3d0x/filament-fabricator/src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
3 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
Glad to hear you got it working!
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
have you restarted your webserver since installing intl? sudo service apache2 restart sudo systemctl restart nginx
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
And what is the error you're currently experiencing at this point?
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
Ah! I thought it was a blocking error.
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
hmm.. https://stackoverflow.com/questions/32764981/php-warning-module-already-loaded-in-unknown-on-line-0 This thread is suggesting a duplicate xdebug. Its possible that you have another package that is being duplicated? I don't think I've seen this one in my experiences.
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
Sounds like intl is trying to get loaded in twice, I'll admit this is an area where I'm a bit foggy in as I normally deal with these when I'm debugging my own issues and then forget about it until the next time I'm setting up an environment. So try just disabling intl in your php.ini, and see if it works?
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
If you have multiple versions of php on your system it may be trying to run using a different php version. You may need to do something like this:
sudo a2dismod php8.0
sudo a2enmod php8.3
sudo service apache2 restart
sudo a2dismod php8.0
sudo a2enmod php8.3
sudo service apache2 restart
Here's another SO link: https://magento.stackexchange.com/questions/272815/how-to-switch-between-php-versions-on-ubuntu-nginx that also has switching with nginx in case you need that.
76 replies
FFilament
Created by jak888 on 5/22/2024 in #❓┊help
intl extension is required
You may have to install intl for a specific php version. As shown in some of the answers from this SO page. https://stackoverflow.com/questions/42243461/how-to-install-php-intl-extension-in-ubuntu-14-04 I am running WSL, but specifically a ubuntu app so this worked for me when I had intl issues.
76 replies