Command "serve" is not defined (Lumen-Laravel)

apapipip picture apapipip · Mar 29, 2016 · Viewed 15.5k times · Source

So, i try to install the lumen restful api. Based on tutorial, i have to "serve" on php artisan. The command be like:

php artisan serve sample_api sample_api/public

then it shows:

Command "serve" not defined.

Some say that serve command has been deleted in laravel 5 (which i use it). if so, what command should i use? or maybe find another tutorial?

Ps: Im a newbie :)

Thanks a lot!

Answer

Oussema Chaabouni picture Oussema Chaabouni · Mar 31, 2016

You can use

php -S localhost:8080 -t public/