GithubHelp home page GithubHelp logo

trannguyenhan / autogencontroller Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9 KB

Library support autogen controller in Laravel

Home Page: https://packagist.org/packages/trannguyenhan/autogencontroller

License: MIT License

PHP 100.00%
auto-generator php php-package

autogencontroller's Introduction

Auto gen controller Laravel

For each person and each project will bring a different code structure, each person likes and has their own style, this project does not help you to create really good controllers, but it can be a foundation. so you can create your own better versions by making changes in the templates folder

Configuration

Install via composer (packagist):

composer require trannguyenhan/autogencontroller

Usage

Gen controller and repository with command:

php artisan tnhgen:controller

If your controller extends orther Class without Controller or your repository extends other Class without BaseRepository add parameter when gen controller:

php artisan tnhgen:controller --basecontroller YourController --baserepository YourRepository

If you want assign model corresponding with controller use under parameter:

php artisan tnhgen:controller --model YourModel

If controller within a namespace, add parameter:

php artisan tnhgen:controller --namespace YourNamespace

and of course, you can combine all the above parameters at once. If you want gen model from MySQL database, PostgreSQL and SQLite, you can follow repository https://github.com/reliese/laravel

autogencontroller's People

Contributors

trannguyenhan avatar

Stargazers

 avatar  avatar

Watchers

 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.