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

segun's avatar
Level 1

running php artisan serve when winsow 10 start

please someone help me i need to auto run php artisan serve when my system star

0 likes
4 replies
jlrdw's avatar

Something like

cd\
cd C:\path to where your laravel is
php artisan serve

But it would have to be added to task scheduler to run when windows opens, you need to go to the Microsoft site and look up how to run a bat file when Windows starts up.

You could search and see if there is a powershell command as well.

siangboon's avatar

It's better to setup a proper web server for production (if you plan so) instead of use php artisan

http://php.net/manual/en/features.commandline.webserver.php

Warning This web server was designed to aid application development. It may also be >useful for testing purposes or for application demonstrations that are run in >controlled environments. It is not intended to be a full-featured web server. It >should not be used on a public network.

Please or to participate in this conversation.