Wildcard Subdomain Routing in Laravel
<?php Route::domain('{project}.example.com')->group(function () { Route::get('posts/{slug}', function ($project, $slug) { dd($project, $slug); }); });
The final link will be as follows
Learn how to define wildcard sudomain routing in your Laravel application
Created on Aug 02, 2021
•469 views
<?php Route::domain('{project}.example.com')->group(function () { Route::get('posts/{slug}', function ($project, $slug) { dd($project, $slug); }); });
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for Laravel Wildcard Subdomain Routing
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View Components2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago