We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My system has this route:
Route::get('{categoriaId?}', [CategoriaController::class, 'inicio'])->name('')->where('categoriaId', '\d+');
in my code:
let categoriaId = 1 route('categorias', categoriaId) //Works
route('categorias') //Works
let categoriaId = null route('categorias', categoriaId) //NOT Works Cannot read properties of null (reading 'categoriaId')
let categoriaId = null route('categorias', categoriaId ?? undefined) //Works
Please fix route function to accept null values on optional routes
The text was updated successfully, but these errors were encountered:
null
bakerkretzmar
Successfully merging a pull request may close this issue.
Description
My system has this route:
in my code:
Correction
Please fix route function to accept null values on optional routes
The text was updated successfully, but these errors were encountered: