In this video we're going to add domain to our production server. To follow this lesson you need to have your own domain. In my case I have a domain called laraveldemo.site.
Let's go to our Digital Ocean account. Go to your droplet in Resources section then hit the triple dot icon on the right side. Hit the Add a domain link.

Enter your domain name in Enter domain input. Make sure your drolet is selected then hit Add Domain button.

Next you need to manage a domain's DNS records. You can enter @ in Enter @ or hostname. Make sure your droplet is selected then hit Create Record.

If you want to have the www version of your site you can enter another record by entering www inside Enter @ or hostname input then hit Create Record.

By adding new record you will have DNS records as follow:

Now you need to go to domain manager in GoDaddy or other webisite where you purchase your domain. Then hit Nameserver.

In the Nameserver page enter your Digital Ocean nameservers then hit save. Note that the changes could take effect for several minutes to 24 hours. You should wait for your ISP to propagate new DNS.

Now since we have added new domain to our server the last thing that we need to do is make a bit change in our Nginx server block configuration.
Let's open our server block configuration.
sudo nano /etc/nginx/sites-available/laraveldemo.site
Change the server_name to your domain. In my case I'll change it to laraveldemo.site www.laraveldemo.site

Save the change. And don't forget to reload your Nginx.
sudo systemctl reload nginx
Now if we enter our domain in browser we have our Laravel app being displayed.

In the following lesson we're going to look at how to setup SSL in our server.