Since you are using XAMPP, it will be better for you to register a new virtual host on your xampp's Apache. Just go to /path-to-xampp/apache/conf/extra/httpd-vhosts.conf
And add this code
<VirtualHost *:80>
ServerName mylaravel-app.local
DocumentRoot "e:/path-to-xampp/htdocs/laravel/public"
<Directory "e:/path-to-xampp/htdocs/laravel/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
After that, you save it and restart your XAMPP to refresh its DNS. Then you can now view your app on http://mylaravel-app.local
UPDATE for sample code:
// app\Http\Controllers\Hello.php
class Hello extends Controller {
public function index() {
echo "Hello world!";
}
...
}
// routes:
Route::get('/hello', 'Hello@index');
// then you test it on http://mylaravel-app.local/hello