I started Laravel at this path:
C:\\Users\\Mad\\Work\\trunk\\product\\backend\\v1.2.1\\laravel
but it is not working, it is not starting. <
Just wanted to add to Jayhuan's answer above:
Laravel does the same thing behind the scenes, you can see the code here (look in serverCommand
).
So to serve locally you would do:
php artisan serve --host mysite.com --port 8000
try to execute the command : composer update.
it will update and export all the directorys/files that u need.
because sometimes when u clone/download a repository from github .. there are pretty much directorys/files that are not present (not exportable .. present in .gitignor).
then try : php artisan serve.
it works for me
I think you also check your path which you use in the composer like C:\Users\HP> example:if your parent folder is blog then use C:\Users\HP> cd blog/ C:\Users\HP>blog> php artisan serve
try
php -S localhost:8000 -t public/
source : http://allbitsnbytes.com/posts/php-artisan-serve-not-working/
Your missing some Server Requirements
See the Laravel site for requirements.
Laravel Documentation
The Laravel framework has a few system requirements.
If you are not using Homestead, you will need to make sure your server meets the following requirements:
PHP >= 7.1.3
BCMath PHP Extension
Ctype PHP Extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
To see a list of your extensions... From the command line:
$ php -m
I was missing BCMath and Tokenizer so I installed them with:
$ sudo apt-get install php-bcmath
$ sudo apt-get install php-tokenizer
Now you can use $ php artisan serve
try only this
php -S localhost:8000