Registry / orm / prettus-l5-repository

prettus-l5-repository

JSON →
library4.0.0phppackagistunverified

Laravel 8|9|10|11|12|13 - Repositories to the database layer.

composer require prettus/l5-repository
INSTALL
IMPORT
SIG · PRETTUS-L5-REPOSIT
P
prettus-l5-repository
ormphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BaseRepository
use Prettus\Repository\Eloquent\BaseRepository;

Create a repository for the Post model and fetch all records.

use Prettus\Repository\Eloquent\BaseRepository; class PostRepository extends BaseRepository { public function model() { return Post::class; } } $repo = app(PostRepository::class); $posts = $repo->all();
Debug
Known issues
gotchaRequires Laravel framework; not standalone.
fix
Use only within a Laravel application.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
44
OpenAI (training)
1
Resources
prettus-l5-repository — pip install prettus-l5-repository · libregistry