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
Just try and execute the command in directory where all laravel code resides. Happened with me too, I was trying to run the command in project's root folder, but the code was in a sub directory