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

Corbin's avatar

Will using subdomain parameters cost more in hosting?

So I'm wand to use subdomain parameters, but keep reading it costs more money in hosting on sites that talk about SEO. Is that true with Laravel?

ex:

Route::domain('{account}.myapp.com')->group(function () {
    Route::get('user/{id}', function ($account, $id) {
        //
    });
});

I essentially want each user to have their own subdomain. Is this viable without a change in costs?

0 likes
1 reply
RamjithAp's avatar
Level 10

No, it will not! No matter you have single domain hosting or multi-domain hosting all you have to do is create wildcard subdomain entry in your server DNS configuration like below.

*.yourdomain.com  - A record - 127.0.0.1 (Your maindomain IP address)

Now you can start using your laravel app with the dynamic subdomains.

Please or to participate in this conversation.