简体   繁体   中英

How to run php artisan serve command

Can someone help me? im try to create new project using laravel but when i want to run command php artisan serve, it doesn't work. they got stuck like in the pict i gave to you.

I try to reinstall the xampp and still not working在此处输入图像描述

I'd recommend using git bash instead of cmd terminal.

Check if the composer and PHP are fine: in terminal type these 2 commands

php -v
composer

Also, when you create a new project run these first

npm install
composer install
npm run dev

php artisan serve

If this doesn't work try this: Go to xampp/htdocs and run

composer create-project laravel/laravel myapp 8.*

this will install the laravel latest version 8 app. Then try the commands above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM