Skip to content

Problem on subdomains #114

Open
Open
@bobitza

Description

@bobitza

I have laravel 11 and get this error:
Missing required parameter for [Route: ro.category.os] [URI: ro] [Missing parameter: subdomain].

this is the url: http://mac.laravel.baa/
The error is when i make dropdown for language with this href: <a class="dropdown-item" href="{{ Route::localizedUrl($locale) }}">
this is the route rule:

	//--Categories 'windows', 'mac', 'linux', 'android', 'ios', 'huawei', 'categories
	Route::pattern('subdomain', 'windows|mac|linux|android|ios|huawei|categories');
	Route::domain('{subdomain}.'.config('app.domain'))->middleware('check.os.subdomain')->group(function (){
		Route::localized(function () {
			Route::get('/', [OsApps::class, 'index'])->name('category.os');
		});
	});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions