What about the prefix part, like example:
Route::prefix('admin')->group(function () {
Route::get('/users', function () {
// Matches The "/admin/users" URL
});
});
Check that you are using prefixing correctly, just suggestion.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So I just started taking advantage of the new name prefixing in route groups (introduced in Laravel 8 I think?) and I've resolved all of the places in my codebase that needed to be renamed when referencing these routes, all except for the VueJS code that I have (using VILT stack). Is anyone aware of a clean way that I can tell VueJS that the route being referenced in Vue as jetstream.workspaces.show should point to the route workspaces.show in my Route Group that is name-prefixed with jetstream.?
Example Route excerpt:
Route::middleware(['web'])->name('jetstream.')->group(function(){
Route::get('/workspaces/{workspace}',[WorkspaceController::class,'show'])->name('workspaces.show');
});
I'm getting the following console error in my application:
Uncaught (in promise) Error: Ziggy error: route 'jetstream.worskspaces.show' is not in the route list.
Thanks in advance for any help! :)
Please or to participate in this conversation.