Category : subdomain

When switching to a subdomain page endless load nothing happens, no errors. My httpd.conf <VirtualHost *:8000> ServerName example.com ServerAlias *.example.com DocumentRoot "/var/www/html/blog/public" </VirtualHost> hosts file 127.0.0.1 localhost 127.0.1.2 example.com 127.0.1.2 *.example.com Routes Route::get(‘/’, function () { #dd(request()->cookie()); return view(‘home.home’); })->name(‘home’); Route::domain(‘{username}.’.env(‘SESSION_DOMAIN’))->group(function () { Route::get(‘/’, [PostController::class,’getAllPosts’]) ->name(‘blog’); }); in .env SESSION_DOMAIN=example.com I do not understand what ..

Read more

Hello devs I have a project of laravel 7 in which I am trying to use sub-domain routes and I am able to do that but after adding subdomain routes I am facing an issue in which it is prefixing the subdomain in all the routes This is the subdomain route Route::domain(‘demo.’.config(‘app.domain’))->group(function () { Route::name(‘demo.’)->group(function ..

Read more

I’m building an app where each subdomain has its own database. For example: "example1.app.dev" uses "example1_dbo" database "example2.app.dev" uses "example2_dbo" database Each subdomain has its own users, meaning that for example: user_ex1 can only login on example1.app.dev because he is set in example1_dbo user_ex2 can only login on example2.app.dev because he is set in example2_dbo ..

Read more

I don’t like to modify the functioning of any of the code for example.com . After the setup the objective is to use one instance of Laravel and have the domain/database structure of the image below and the following user interface pages. info1.example.com info2.example.com info3.example.com these all are run from example.com. Like example.com main domain ..

Read more