9 months ago
Hello Support Team,
I am currently encountering an issue while trying to deploy my Laravel project (version ^11.9) on Railway. The application runs as expected locally, but on Railway, when running composer install
or composer update
, I receive the following error:
```
ERROR There are no commands defined in the "package" namespace. Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
```
Attempts to clear the configuration, cache, and view using php artisan
commands also fail with similar namespace errors.
Steps Taken:
Verified that the correct Laravel version (^11.9) is specified in
composer.json
.Ran
composer install
andcomposer update
commands.Attempted clearing caches (
php artisan config:clear
,php artisan cache:clear
, etc.).Ensured that the
artisan
file is present and correct.
Despite these steps, the issue persists only on Railway, not on local development.
Request: Could you provide insight or assistance on resolving this issue or any known solutions to ensure proper deployment and package discovery for Laravel version ^11.9 on Railway?
Thank you for your assistance!
Best regards
1 Replies
9 months ago
its working rn