0

I have a Laravel project. I would like to know how can I run it and view the pages on my browser? Like for example, if I had a Django project, I would simply cd to it and type "python manage.py runserver" in the terminal to run the project. How can I do this with a Laravel Project?

Plato
  • 1
  • 2

3 Answers3

2

Use the artisan serve command:

php artisan serve
Joseph Silber
  • 214,931
  • 59
  • 362
  • 292
0

I like the bare php command more, it provides some nice colors, green for OK, red for errors.

php -S localhost:8000 -t public/

Or even:

echo "php -S localhost:8000 -t public/" > start_server.sh
sh start_server.sh
MGP
  • 2,981
  • 35
  • 34
0

Depends on your operating system (OSX, Windows, Linux) but I find that the software Laragon https://laragon.org is very good in providing everything you need, including apache, mysql, editing the host file, and sending (test) emails.

Alexie
  • 1
  • 2