Skip to content
Discussion options

You must be logged in to vote

The issue was that I was missing the SubstituteBindings middleware.

            ['prefix' => 'group/{groupId}', 'namespace' => 'Group', 'middleware' => 'bindings'],

Now, as expected, the objects are substituted rather than prepended:

array:4 [▼
  0 => App\Models\Group {#1266 ▶}
  1 => 668
  2 => 24
  3 => "2022-01-28 11:34:58"
]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EricSocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant