LaravelPackages.net
Acme Inc.
Toggle sidebar
basel/repository-pipeline

Package to create repositories for each model and using pipeline in filters

11
0
v1.0.5
About basel/repository-pipeline

basel/repository-pipeline is a Laravel package for package to create repositories for each model and using pipeline in filters. It currently has 0 GitHub stars and 11 downloads on Packagist (latest version v1.0.5). Install it with composer require basel/repository-pipeline. Discover more Laravel packages by basel or browse all Laravel packages to compare alternatives.

Last updated

About Repositoty-Pipeline

basel/repository-pipeline is a Laravel Package That make repository layer for each model and target QueryFilters/ModelName Folder to get pipelines filters and apply filters in repository.

Requirements

  • PHP >= 8.0.0
  • Laravel >= 8.0

Code Examples

use Basel\RepositoryPipeline\Repository;

$filters = ['id'=>3,'active'=>true];

$products = Repository::get(Product::class, $filters, $perPage = 1);

$product= Repository::find(Product::class, $filters);

$new_product = Repository::create(Product::class, ['name'=>'product','description'=>'description']);

$isUpdated = Repository::update($product,['name'=>'new name','description'=>'new description']);

$isDeleted = Repository::delete($product);
Comments