Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Route Model Autobinding Laravel Package

sebastiaanluca/laravel-route-model-autobinding

Automatically bind Eloquent models to Laravel route parameters using naming conventions, so {post} resolves to your Post model without manual Route::model definitions. Cuts boilerplate and keeps route files clean and predictable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy (and buy vs. use the framework): This package is a case study in "don't build what the framework now ships." Its only job — automatically resolving Eloquent models from route segments (e.g., {user} → User) — is handled natively by Laravel's implicit route model binding. The product decision it most directly supports is rejecting an added dependency in favor of a first-party framework capability, which reduces maintenance surface, audit scope, and upgrade friction.
  • Roadmap and upgrade planning for legacy codebases: If an older product still lists this package in composer.json, its presence is a reliable signal that the app predates Laravel 5.4-era conventions or has drifted from framework idioms. That flags upgrade work (Laravel version bump, PHP 8 readiness, removal of abandoned dependencies) as a roadmap item with a concrete, bounded scope.
  • Technical debt triage and security review: Archived since 2019 with a single maintainer and ~14 stars, it is a low-signal dependency for any procurement or security questionnaire. Its existence in a dependency tree should raise "abandoned package" findings during due diligence, M&A code review, or SOC 2-style dependency hygiene checks.
  • CRUD scaffolding and internal tooling scope: Historically, it reduced boilerplate in RouteServiceProvider for teams generating many resource routes. That use case still exists, but the decision now is "use implicit binding + Route::model() where needed," not "add a package." Useful as a reference point when estimating effort for scaffolding conventions.
  • Not a differentiator: No user-facing capability, revenue path, or competitive advantage flows from this package. It should not appear in a feature roadmap; it belongs only in maintenance and platform-health discussions.

When to Consider This Package

Essentially never for new work. The package is explicitly marked deprecated and the repository is archived; the last release was September 2019. It will not receive compatibility updates for modern Laravel releases or PHP 8+, and any issue found in production becomes your team's to fix — you are effectively forking it.

Consider it only in these narrow, non-forward-looking scenarios:

  • You are auditing an existing legacy application that already depends on it, and you need to understand what it did before removing it. Read it as documentation, not as a dependency to install.
  • You are pinned to a pre-5.4 Laravel version and cannot upgrade for contractual or platform reasons — and even then, prefer an explicit Route::model() / Route::bind() mapping in RouteServiceProvider, which is a few lines and carries no abandonment risk.
  • You need a historical reference for how convention-based auto-binding was implemented, e.g., while writing an internal ADR on routing conventions.

Look elsewhere — specifically at the framework — when: you want automatic model resolution in routes (Laravel implicit binding), custom resolution logic (Route::bind(), resolveRouteBinding() on the model), soft-delete or scoping behavior (->scopeBindings(), withTrashed()), or slug-based lookup (getRouteKeyName()). All of these are first-party, documented, tested, and maintained. A maintained third-party alternative is only justified if it adds policy, tenancy, or multi-model resolution semantics you genuinely need — and even then, evaluate it on its own merits, not as a successor to this package.

Adoption checklist if someone insists: confirm the target Laravel/PHP version is supported (it is not), confirm an active maintainer and recent release (there is none), confirm a security disclosure process (there is none), and estimate the cost of vendoring the code into your own namespace. In practice the checklist fails at the first item.

How to Pitch It (Stakeholders)

To executives: This is a small, free utility that saved a few lines of code in Laravel apps around 2017–2019. It is now deprecated, archived, and unmaintained, and the framework absorbed its functionality years ago. There is no business case to adopt it. If it appears in our stack, it is a maintenance and audit liability we should remove — a small, low-risk cleanup that improves our dependency posture and upgrade path. Net recommendation: no investment, no adoption; schedule removal where found.

To engineering: Do not add this dependency. Laravel's built-in implicit route model binding covers the same ground with zero dependencies, plus scoping, soft deletes, custom keys, and custom resolution via resolveRouteBinding(). For legacy services still using it, the migration is mechanical: delete the package, remove its service provider registration, and rely on implicit binding — then add explicit Route::model() only for models whose route key or resolution logic is non-standard. Budget this as a half-day task per service, mostly regression testing on routes with model parameters. If a team is reaching for auto-binding to cut boilerplate, the right answer is a routing convention documented in our ADR, not a third-party package.

To security and procurement: The package is MIT-licensed, single-maintainer, archived, with no release since September 2019 and no supported Laravel or PHP 8 branch. It is not a direct vulnerability, but it is unpatched-by-definition: any future issue is ours to fix. Treat it as a "remove on touch" item in dependency hygiene reviews rather than a blocking finding, and prioritize it alongside other abandoned packages during upgrade cycles.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names