@dev_2108 Two steps:
- Set domain based routing.
e.g.
Route::domain('site-testing.info')->group(function () {
Route::group(['prefix' => 'posts', 'as' => 'posts.site-testing.'], function () {
Route::get('/{slug}', [PostController::class, 'show'])->name('show');
});
});
- Now use it in the blade.
<a href="{{ route('posts.site-testing.show', ['slug' => 'example-slug']) }}">Read more</a>
BTW, don't forget to clear
php artisan route:clear
php artisan config:cache