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, be sure to be in the laravel project folder or else the terminal won't be able to locate the artisan file in the project directory and any subsequent request you pulled to start a server would be rejected.
Let's say our laravel project name is blog and located in C:\laravel
We then have: C:\laravel\blog
Navigate to the C:\laravel\blog directory and open the command window (terminal). Input the code below:
php artisan serve --host 127.0.0.1