PHPackages                             laradevsbd/repository - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laradevsbd/repository

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laradevsbd/repository
=====================

This package will be help to create repository file

1124PHP

Since Jun 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/laradevsbd/lara-repositories)[ Packagist](https://packagist.org/packages/laradevsbd/repository)[ RSS](/packages/laradevsbd-repository/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Issues](https://camo.githubusercontent.com/364452d8ebe1a91b3d0a8e3a164e57d0e9a3c83fc7c18dbf3cf7617799b11cab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c6172616465767362642f6c6172612d7265706f7369746f726965732e7376673f7374796c653d666c61742d737175617265)](https://github.com/laradevsbd/lara-repositories/issues)[![Stars](https://camo.githubusercontent.com/00d29849eaeff6c3af664af87166b8c05eb9c286417605eb1fc8644f194afda9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6172616465767362642f6c6172612d7265706f7369746f726965732e7376673f7374796c653d666c61742d737175617265)](https://github.com/laradevsbd/lara-repositories/stargazers)[![Forks](https://camo.githubusercontent.com/1c56ccf1d31fa90dfcace894f43537895cce651d4c83c2b9a527afa18d11e6ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6c6172616465767362642f6c6172612d7265706f7369746f726965732e7376673f7374796c653d666c61742d737175617265)](https://github.com/laradevsbd/lara-repositories/network/members)

Laravel  **Repositories** is a package for Laravel which is used to abstract the database layer.

##### This package is compatible with Laravel 7.\* 8.\* 9.\*

[](#this-package-is-compatible-with-laravel--7-8-9)

###### Installation

[](#installation)

```
composer require laradevsbd/repository

```

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

```
'providers' => [

        // .........................
        \Laradevsbd\Repository\LaradevsbdRepositoryServiceProvider::class,

    ]

```

Usages
======

[](#usages)

##### Create an console class

[](#create-an-console-class)

```
php artisan make:repository UserRepository

```

Now Check directory **App\\Repositories\\UserRepository.php** and add the model class

```
