Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

armancs's avatar

Suddenly i am not able to run any artisan command on my laravel project

Firstly i tried this command php artisan tinker getting this error

Could not open input file: artisan

after trying to restart server with php artisan serve getting same error.

I tried this command

composer update

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi Could not open input file: artisan Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

this is what i am getting now.

Help please

0 likes
2 replies
skauk's avatar
skauk
Best Answer
Level 8

@armancs Do you have artisan.php file in the root of your project?

1 like

Please or to participate in this conversation.