If you're wanting to publish a PHP web app like Laravel or a WordPress site you might considering using a virtual server that people on the internet can connect to and use your service from. EC2, or Elastic Compute Cloud by AWS, is a common solution for this.
From the list of Instanced in EC2, find the Public IPv4 address next to the instance you just created. You'll use this, your username, which is ubuntu since we're using Ubuntu, and your .pem key that you downloaded to connect via SSH into your server. I use a wonderful free tool called Termius. Here is some additional documentation on storing your key for later use here.
You'll find all the files distributed from your server live in /var/www. You'll want to replace these with your project files, such as the public directory of your Laravel Project.