What URL are you trying to access? In case of Xampp, it searches for index file in root directory. And laravel's index is present in public.
So either you need to configure apache to point public directory of your folder.
Or simply try using public when accessing localhost.
http://localhost/project-name/public/{route}