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 Findby Laravel Package

someonefamous/laravel-findby

Add dynamic finders to Eloquent models: call User::findByLastName('Smith') or User::findAllByFirstName('Bob') instead of where()->first()/get(). Works with any snake_cased field name via the FindBy trait.

View on GitHub
Deep Wiki
Context7
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0

Added some tests

2.0.0

Moved trait into a Traits subfolder, and adjusted namespace.

Apps upgrading from previous versions of this package will need to adjust the namespace on models using the trait:

From use SomeoneFamous\FindBy\FindBy;

To use SomeoneFamous\FindBy\Traits\FindBy;

1.0.2

Updated the code in the readme file, due to Laravel 8 changing its default namespace for models to App\Models.

v1.0.1
v1.0
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core