Download the PHP package mylesduncanking/laravel-auto-bind without Composer
On this page you can find all versions of the php package mylesduncanking/laravel-auto-bind. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mylesduncanking/laravel-auto-bind
More information about mylesduncanking/laravel-auto-bind
Files in mylesduncanking/laravel-auto-bind
Download mylesduncanking/laravel-auto-bind
More information about mylesduncanking/laravel-auto-bind
Files in mylesduncanking/laravel-auto-bind
Vendor mylesduncanking
Package laravel-auto-bind
Short Description Abililty to automatically bind properties in Laravel
License MIT
Homepage https://github.com/mylesduncanking
Package laravel-auto-bind
Short Description Abililty to automatically bind properties in Laravel
License MIT
Homepage https://github.com/mylesduncanking
Keywords laravelroute model binding
Please rate this library. Is it a good library?
Informations about the package laravel-auto-bind
Laravel Auto Bind
Automatically bind route parameters to controller properties — clean, Laravel-native, and zero boilerplate.
Features
- ✅ Native route-model binding
- ✅ Reduce boilerplate in constructors
- ✅ Supports soft-deleted models
- ✅ Supports public and protected properties
- ✅ Use custom columns (e.g.
slug) - ✅ Easy to drop into existing Laravel apps
Installation
Basic Usage
Add the #[AutoBindProperty] attribute to each controller property you want to bind. Properties must be typed and match the route parameter name. Both public and protected work:
Use a Custom Column
Bind Soft Deleted Records
Call bind() in Your Constructor
Tip: For DRY controllers, call AutoBind::bind($this) in a base abstract controller and extend it.
Accessing Bound Properties
Use them like any class property:
Or inject into a view:
Full Example
routes/web.php
ClientsController.php
Why Laravel Auto Bind?
- ✨ Less boilerplate
- 🔁 Cleaner, focused controllers
- 🧠 No new magic — pure Laravel route binding
- 🔍 Fine-tune with soft deletes and custom columns
License
MIT
All versions of laravel-auto-bind with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1
The package mylesduncanking/laravel-auto-bind contains the following files
Loading the files please wait ...