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
544
3 years ago
0 comments
<?php Route::domain('{project}.example.com')->group(function () { Route::get('posts/{slug}', function ($project, $slug) { dd($project, $slug); }); });
Frontend
Resource
Average
Average
No recent searches
Leave a reply