Coder Social home page Coder Social logo

primerg / custom-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aindong/custom-generator

0.0 1.0 0.0 94 KB

A laravel custom generator inspired by the generator packaged of jeffrey way.

Home Page: https://packagist.org/packages/aindong/custom-generator

License: GNU General Public License v2.0

PHP 100.00%

custom-generator's Introduction

Laravel Custom Generator

A laravel custom generator inspired by the generator packaged of jeffrey way. This generator will generate files that are needed for a repository pattern structure.

Installation

  1. Add this into your laravel composer.json file, under require
"require-dev": {
  "aindong/custom-generator": "dev-master"
}
  1. Open up your terminal and run
composer update
  1. After downloadign the package. Open up your app/config/app.php file and inside the $providers array add this
'Aindong\CustomGenerator\Providers\CustomGeneratorServiceProvider',
  1. If errors occured like, it can't find the package. Run
composer dumpautoload -o

Usage

  1. Inside your app folder, create a customized folder name that will contain all of your features. For example I created an Acme Folder
-app
--Acme
  1. And under your custom folder, create a Features folder.
-app
--Acme
---Features
  1. Now on your terminal, type
php artisan generate:feature featurename --path=app/Acme --namespace=Acme
  1. TADA! now check your features folder for the magic!

Notes

This package is still under development but I'm already using it to make my work faster and reduce the time of creating new files and restructuring them. Feel free to suggest.

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.