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
First create the project from the following link to create larave 7 project: Create Project
Now you need to enter your project folder using the following command:
cd myproject
Now try to run artisan command, such as, php artisan.
Or it may happen if you didn't install compose. So if you didn't install composer then run composer install and try again artisan command.