GithubHelp home page GithubHelp logo

nivslive / makeservicerepository Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipedamacenoteodoro/makeservicerepository

2.0 0.0 0.0 9 KB

Laravel make service and repository files

PHP 100.00%

makeservicerepository's Introduction

Make Service Repository

Quickly generate command make for Service and Repository files for projects using Laravel packages.

Install

Via Composer

composer require felipedamacenoteodoro/makeservicerepository --dev

Usage

Open the console and enter one of the commands:

  • Generate all files for one new Service and Repository interface:
php artisan make:crudsrv {Entity_name}
  • Generate a Repository Interface
php artisan make:repositoryi {Entity_name}
  • Generate a Service Interface
php artisan make:servicei {Entity_name}
  • Generate a Service
php artisan make:service {Entity_name}
  • Generate a Repository file
php artisan make:repository {Entity_name}

Remember

You need to map the interface bind on your application server provider.

  • Exemple:

Add In the boot method of your service provider app/Providers/AppServiceProvider.php:

$this->app->bind(YourEntityCreatedServiceInterface::class, YourEntityCreatedService::class);
$this->app->bind(YourEntityCreatedRepositoryInterface::class, YourEntityCreatedRepository::class);

Change log

Please see CHANGELOG for more information what has changed recently.

makeservicerepository's People

Contributors

felipedamacenoteodoro avatar

Stargazers

Roman avatar ALEXANDRE EVANGELISTA avatar Nivan Jr. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.