PHPackages                             laravel\_tools\_dev/repoist - 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. laravel\_tools\_dev/repoist

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

laravel\_tools\_dev/repoist
===========================

Laravel 5 repository generator.

1.0.5(9y ago)06.4kMITPHPPHP &gt;=5.4.0

Since May 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shaobaojie/Repoist)[ Packagist](https://packagist.org/packages/laravel_tools_dev/repoist)[ RSS](/packages/laravel-tools-dev-repoist/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (9)Used By (0)

Repoist
=======

[](#repoist)

Laravel 5 repository generator.

Usage
-----

[](#usage)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require laravel_tools_dev/repoist --dev

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

You'll only want to use these generators for local development, so you don't want to update the production `providers` array in `config/app.php`. Instead, add the provider in `app/Providers/AppServiceProvider.php`, like so:

```
public function register()
{
	if ($this->app->isLocal()) {
		$this->app->register('Kurt\Repoist\RepoistServiceProvider');
	}
}
```

### Step 3: Publish and edit the configurations

[](#step-3-publish-and-edit-the-configurations)

Run `php artisan vendor:publish` from the console to configure the Repoist according to your needs.

### Step 4: Run Artisan!

[](#step-4-run-artisan)

You're all set. Run `php artisan` from the console, and you'll see the new commands in the `make:repository` namespace section.

Examples
--------

[](#examples)

- [Repositories Without Model](#repositories-without-schema)
- [Repositories With Model](#repositories-with-schema)

### Repositories Without Schema

[](#repositories-without-schema)

```
php artisan make:repository Task

```

Will output:

- `app/Interfaces/Task/TaskRepositoryInterface.php` (contract)
- `app/Repositories/Task/TaskRepositoryEloquent.php`

### Repositories With Schema

[](#repositories-with-schema)

```
php artisan make:repository Task -m

```

Will output:

- `app/Interfaces/Task/TaskRepositoryInterface.php` (contract)
- `app/Repositories/Task/TaskRepositoryEloquent.php`
- `app/Models/TaskEloquent.php`

Configurations
--------------

[](#configurations)

If somehow you cannot publish the `config/repoist.php` from artisan here you can copy and use it.

```
