Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on subdomains #114

Open
bobitza opened this issue Aug 1, 2024 · 0 comments
Open

Problem on subdomains #114

bobitza opened this issue Aug 1, 2024 · 0 comments

Comments

@bobitza
Copy link

bobitza commented Aug 1, 2024

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');
		});
	});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant