Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

Laravel 8 working with subdomain routing but its not working

Route::domain('{user}.xyz.com')->group(function () {
    Route::get('/posts', [PostsController::class, 'view'])->name('posts');
});

//Controller

class PostsController {
    public function view ($user){
        dd($user) //this will output the current user's subdomain name
    }
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: js 
Typescript :: total infosys employees 
Typescript :: xargs / parallel 
Typescript :: convert java to typescript 
Typescript :: testing tools vs testing techniques 
Typescript :: description of capillary walls 
Typescript :: if its past 24 hrs *laravel 
Typescript :: a korean movie where a man gets kidnapped by a family 
Typescript :: selenium components 
Typescript :: ioredis 
Typescript :: typescript mocha Cannot use import statement outside a module 
Typescript :: typescript read url search params 
Typescript :: land features created by plates moving toward each other 
Typescript :: TypeError: autodiscover_tasks() takes at least 2 arguments (1 given) celery 
Cpp :: how to hide the console c++ 
Cpp :: sfml local mouse position 
Cpp :: cpp get data type 
Cpp :: tribonacci series c++ 
Cpp :: how to output text in c++ 
Cpp :: Count set bits in an integer c++ 
Cpp :: how to take user input in a client server program in c++ 
Cpp :: how to append one vector to another c++ 
Cpp :: how to run code in devcpp 
Cpp :: how to type hello world in c++ 
Cpp :: vs code text in line 
Cpp :: C++ Kilometers Per Hour to Miles Per Hour Conversion 
Cpp :: c++ replace character in string 
Cpp :: priority queue c++ time complexity 
Cpp :: prime number program in c 
Cpp :: addition without arithmetic operators c++ 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =