red-plug / eloquent-unhydrated
Create fastest queries without leaving the eloquent models
v1.0.0
2025-07-01 00:51 UTC
Requires
- php: ^8.2
- illuminate/database: ^12.0
Requires (Dev)
- mockery/mockery: ^1.6.2
- orchestra/testbench: ^10.0
- pestphp/pest: ^3.7
- phpunit/phpunit: ^11.5.3
README
Eloquent Unhydrated allows you to retrieve database info without the pain of hydrating every model, the idea originally came from Laravel Crud Wizard Free
Installation
Use the package manager composer to install eloquent-unhydrated
.
composer require red-plug/eloquent-unhydrated
Usage
use App\Models\User; User::getUnhydrated(); User::cursorPaginateUnhydrated(); User::paginateUnhydrated(); User::paginateUsingCursorUnhydrated(); User::simplePaginateUnhydrated();
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.