Select ( enter ) the same document root - in this case /public_html
Enter * for Subdomain
Go to the Zone Editor menu:
Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address (it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to):
Now, you will need to wait until the propagation is over (it should take N seconds, where N – is TTL for this A record; you can edit it manually and reduce the number to speed up the process), and then the wildcard subdomain will work correctly.
Each restaurant has automatically their own subdomain now. Open some restaurants on your site. Example:
Login as admin in your project and decare in Settings / Setup and select WILDCARD_DOMAIN_READY
Article Instructions copied from
How to create a wildcard subdomain in cPanel - Hosting - Namecheap.com
SSL - HTTPS
By default the wildcard subdomains are not SSL protected. To do that you can buy or issue wildcard SSL certificate - sometimes they are a bit expensive. You can also use https://letsencrypt.org/ to create your own free wildcard SSL. Plesk by default can enable SSL on wildcard subdomain. You can also use this guide. Our demo site works on Laravel Forge. They also have the options to automatically create wildcard SSL via Digital Ocean NS.