mtvs / eloquent-hashids

On-the-fly hashids for Laravel Eloquent models. (🍰 Easy & ⚡ Fast)
292 stars 21 forks source link

Support child route binding #25

Closed unnoq closed 2 years ago

unnoq commented 2 years ago
Route::get('/users/{user}/posts/{post}', function (User $user, Post $post) {
    return $post;
})->scopeBindings();

This PR will support the scopeBindings method above

mtvs commented 2 years ago

I decided to overwrite resolveRouteBindingQuery() to support child route bindings and also other variations. Thank you.