I'm following the official Laravel course (currently the first chapter "Meet Composer,"), but I can't seem to get it right. In the course I was instructed to enter in the command line:
php -S localhost:8888 -t public
and I should be able to reach the URL: "http://localhost:8888/learning-laravel-5", but this gives me a 404 error.
But if I put in this URL I get to see the frontpage, as it should: http://localhost:8080/learning-laravel-5/public/index.php
My question is, how can I see the frontpage as instructed in the video, following the provided URL: http://localhost:8888/learning-laravel-5 ?
I have looked through the duplicate questions on stackoverflow but I can't find a solution to this problem.
Edit: I have tried to get my absolute path by doing pwd, its says "/media/sf_sandbox/laracast-4.2", I now have done this: "php -S localhost:8888 -t /media/sf_sandbox/laracast-4.2/public". I now go to localhost:8888 but it still doesn't work.
It says my documentroot is /media/sf_sandbox/learning-laravel-5/public