PHPackages                             ahmedhakeem/extra - 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. ahmedhakeem/extra

ActiveLibrary

ahmedhakeem/extra
=================

This package added more feature in development environment

012PHP

Since Feb 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AhmedhakeemA/Extra)[ Packagist](https://packagist.org/packages/ahmedhakeem/extra)[ RSS](/packages/ahmedhakeem-extra/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Extra
=====

[](#extra)

This is Laravel Package help during development process by adding extra command to create service repository pattern and creating although classes or interface or Traits Only just by one command

[![Image of Yaktocat](https://camo.githubusercontent.com/c9a521042d65cc9d35c230ccdff609b81a04c6fd55ac76f1b08e2f8312916896/68747470733a2f2f66696c65732e666d2f7468756d625f73686f772e7068703f693d617071787a6b773933)](https://camo.githubusercontent.com/c9a521042d65cc9d35c230ccdff609b81a04c6fd55ac76f1b08e2f8312916896/68747470733a2f2f66696c65732e666d2f7468756d625f73686f772e7068703f693d617071787a6b773933)

Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install extra.

```
composer require ahmedhakeem/extra
```

Configuration
-------------

[](#configuration)

Publish the configuration file

This step is required

```
php artisan vendor:publish --provider="Hakeem\Extra\ExtraServiceProvider"

```

Uasge
-----

[](#uasge)

### Service Repository Pattern Command:

[](#service-repository-pattern-command)

The follwoing commads each one will create different thing

This Command will Create Service Repository Pattern Full Development Line Start From Migration To Controller

```
php artisan extra:sr  Product

```

#### Classes that Will Created:

[](#classes-that-will-created)

- Controller
- Service Class
- Repository Class
- Repository Interface
- Model
- Migration file
- Factory

#### Result For Command :

[](#result-for-command-)

- ProductController
- ProductService
- ProductRepository
- ProductRepositoryInterface
- Product
- Migration File ex "2014\_10\_12\_000000\_create\_products\_table.php"
- ProductFactory

#### Result :

[](#result-)

[![Image of Yaktocat](https://camo.githubusercontent.com/178879d67e513a0afbb16853d9c875f03a6f710315c0011c52068e10a095c42a/68747470733a2f2f66696c65732e666d2f7468756d625f73686f772e7068703f693d766d72717371756434)](https://camo.githubusercontent.com/178879d67e513a0afbb16853d9c875f03a6f710315c0011c52068e10a095c42a/68747470733a2f2f66696c65732e666d2f7468756d625f73686f772e7068703f693d766d72717371756434)

```
