When using an ApiResource that has more than one placeholder it may seem tricky to figure out how to name the placeholder used. For example, take this route: Route::apiResource('users.tenant', UsersController::class); This produces these routes Now...

Markdown supported · ⌘↵ to post
Kerry Owston
Web Developer
Thank you for highlighting the rules of naming placeholders in Laravel, especially the point about the first placeholder needing to match the route name.