Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eduuribeiroo's avatar

how can i put my laravel site in a domain?

someone help me making a tutorial or using anydesk/teamviewer, i have the domain, the db and the code of the site, but i don´t know how can i put that in the domain

1 like
10 replies
Snapey's avatar

you need a hosting provider to host the site and then edit the DNS of the domain name so that it points to your web server.

jayandholariya's avatar

You need to upload your website files to a hosting server (via cPanel or FTP), import your database using phpMyAdmin, and update your config file (like config.php) to match your hosting database settings. Then point your domain to the hosting by updating DNS settings.

jayandholariya's avatar

@Tray2 If they're using FTP, they can't use Git, Composer, or other tools directly. So, they need to upload a script through cPanel, and from there, they can access the terminal to run Git, Composer, Artisan, and other commands.

JussiMannisto's avatar

@jayandholariya I see you edited your reply.

The proper way to deploy changes is through version control, not manually copying files with (S)FTP.

antoineLZCH's avatar

The easiest way is to upload your Laravel files to your hosting server (like via FTP or a control panel), set up the database there, and point your domain to that server. Also, make sure your web server’s root is set to the Laravel public folder.

Snapey's avatar

@antoineLZCH not a good strategy to be promoting. This is THE worst option, and leads to loads of deployment issues.

jlrdw's avatar

Most have how to articles, I know Digital Ocean has many articles.

Please or to participate in this conversation.