So I just created a new project using the command:
laravel new blog
Then I started by changing the directory and do the command
php artisan serve
And this is what happened, more details:
- I’m using laravel 8.0.1 (latest version)
- I haven’t run any command except the one I listed above
- I’m using windows
- I even updated the php to 7.4.10 (latest ver)
5
Answers
So actually i dont actually know what the reason is, but using the php -S localhost:8000 -t public
I came across the same issue.
This was how how I solved mine:
php.ini-development
php.ini
php artisan serve
PS: If there is any additional steps you took, you can as well comment them below:
XOXO
Check your PHP version in your local server and System variable path. Make sure they are using the same PHP version
I had this problem too, and I solved it in this way:
This error is because the php.ini was not found.
run php –ini
Configuration File (php.ini) Path:
Loaded Configuration File: C:php8php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
The line "Loaded Configuration File" would indicate the location of loaded php.ini, if not, rename the php.ini-development to php.ini