Domain Search
Photo by Viarami on Pixabay
  1. The user doing setup in their domain registrar or website hosting company
  2. Routing in your platform

Domain Setup by User

Routing in Platform

  • Any PHP framework
  • Express.js or any Node.js backend framework
  • Ruby on Rails
  • Java Spring Boot

Domains

Route::group(['domain' => '{subdomain}.{domain}.{tld}'], function(){

Route::any('/', function($sub, $domain, $tld){
return 'custom domain: ' .
$sub . '. ' .
$domain . '. ' .
$tld;
});

});

Subdomain

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yoram Kornatzky

Yoram Kornatzky

254 Followers

Entrepreneur, Building: Auction Events Platform for Creators, 25 years of development experience, Ph.D. Computer Science, https://yoramkornatzky.com