When trying to create a new laravel project, The following error appears on the CLI:
Could not open input file: artisan Script php artisan clear-c
Could not open input file: artisan
Script php artisan clear-c
What did the trick for me was to do cd src from my project directoy, and then use the php artisan command, since my artisan file was in the src folder. Here is my project structure:
cd src
php artisan
artisan
src
project |__ config |__ src |__ app |__ .. |__ artisan // hello there! |__ ... |__ ...