Answers for "Laravel 8 working with subdomain routing but its not working"

0

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
    }
}
Posted by: Guest on May-09-2022

Code answers related to "Laravel 8 working with subdomain routing but its not working"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language