Level 2
Is this problem retailed to Laravel itself? I get the same error with a clean 4.2 installation.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Could not open input file: artisan
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
I just unchecked Forge option that installs a migration because it caused some problems. How does php artisan migrate work on Forge? Just tried php artisan migrate --force because it gets used with the default deployment script.
php artisan returns in Could not open input file: artisan running it in the project root.
Wow after 4 hours I figured it out and changed the forge deploy script to:
cd /home/forge/sitename
git pull origin master
composer update --no-scripts
php artisan migrate --force
Please or to participate in this conversation.