Skip to content

Commit

Permalink
more binding
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Oct 3, 2023
1 parent 3d37553 commit 23dbe97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public function registerRouteModelBindings()
Route::bind('post', function($slugId) {
return Post::findByIdSlug($slugId);
});

Route::bind('postSlug', function($slugId) {
return Post::findByIdSlug($slugId);
});
}

protected function mapPackageRoutes(): self
Expand Down

0 comments on commit 23dbe97

Please sign in to comment.