
Product
Socket Zero Introduces Automated Remediation PRs
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.
sinclairt/repository
Advanced tools
Common queries wrapped up in a base repository class to be extended
Common queries wrapped up into a class to be extended.
composer require sinclairt/repository
composer install
All you need to do is create a repository that extends Sinclair\Repository\Repositories\Repository and implements the Sinclair\Repository\Contracts\Repository and off you go you have access to all the goodness of the repository!
This is a list of all the methods available to you
sort
getById
getAll
getAllPaginate
add
getByName
update
destroy
save
firstOrCreate
getArrayForSelect
getArrayForSelectWithTrashed
onlyFillable
getByIdWithTrashed
getAllWithTrashed
getAllPaginatedWithTrashed
restore
search
searchWithTrashed
filter
filterPaginated
setQuery
getQuery
F.Y.I All of the queries use Laravel's query builder methods, so be sure that your model class has access to these!
FAQs
Common queries wrapped up in a base repository class to be extended
We found that sinclairt/repository demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Product
Put vulnerability remediation on autopilot with automated security patches and intelligent dependency upgrades across your GitHub repositories.

Product
Socket Zero automates vulnerability remediation with upgrades and targeted patches, including fixes for 100% of known, patchable RubyGems CVEs.

Product
Explore Socket’s redesigned Alerts UI, multi-branch repository monitoring, and new tools for resolving findings, searching scans, and filtering security alerts.