Creating virtual host depends on the Operating System as well as which web server you are using (Nginx or Apache).

Here are the list of reference to read instructions on this topic:

Installing Laravel Valet – How to setup a local dev environment

Virtual Host on Mac OS X with Mamp (free version)

How to create Virtual Host in MAMP?

Easily Setup Virtual Host on Mac Using MAMP

How to Setup Virtual Host on Localhost / WAMP Server

How to create virtual hosts in MAMP?

How to create virtual hosts in WAMP in windows?

How to use Valet to create virtual hosts on MacOS?