This problem only happens on OSX
I installed composer using the curl -sS "https://getcomposer.org/installer" | php
command in Terminal and made the composer global then I created the laravel app using composer.phar create-project laravel/laravel cld
command and i restarted localhost and went to localhost/cld/public and I get the following error
localhost is currently unable to handle this request.
I did the same thing in windows 10 and everything works fine.
UPDATE
I started to use Laravel Valet and it's amazing some useful resources
1. https://laravel.com/docs/5.4/valet
2. https://www.youtube.com/watch?v=IBxIfN-GnnY&t=102s