Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AhmedHaroon999's avatar

batch file to run my project locally

please help to have a batch file which can run my laravel project , created batch file as below, please advise for best practices.

my .bat file contains :

REM Change this path to your Laravel project's root directory

cd /d "C:\xampp\htdocs"%1

echo Starting Laravel development server...

php artisan serve

pause

0 likes
3 replies
Tray2's avatar

If you are using xampp or herd for that matter, there is no need to use php artisan serve, since you already have a webserver running.

Like @krisi_gjika says, Herd is a better option.

1 like
AhmedHaroon999's avatar

thank you @krisi_gjika and @tray2 for your valuable advise... i will try my best to follow instructions what I received here from seniors !!

with kind regards

Please or to participate in this conversation.