Giter Club home page Giter Club logo

laravel-crud-generator-package's Introduction

Laravel CRUD Generator

A simple CRUD generator package. This package will generate Controller, Migration, Model, Request, Views and Route through a single command.

Features

With a single command, this package can generate:

  • Migration file will be generated and table will be automatically created in the database.
  • Model file will be created with guarded.
  • Request file will be created with field and validation rules.
  • Controller file will be created with all the function with operations.
  • Views files will be generated in a folder with the crud name specified in the command.
  • Resource Route will be generated in the web.php file.

Requirements

Laravel >= 8.0
PHP >= 7.4

Installation

composer require shreyasarker/lara-crud

Command

php artisan make:crud Product --fields='name#string; description#text; price#float; type#select#options={"Book": "Book", "Food": "Food", "Medicine": "Medicine", "Furniture": "Furniture"}'

Field Types

Currently these following field types work for this package.

  • string
  • text
  • mediumtext
  • longtext
  • password
  • email
  • number
  • integer
  • bigint
  • mediumint
  • tinyint
  • smallint
  • decimal
  • double
  • float
  • select

Form input type, validation rule and sql column type are generated based on the field types.

Template

Currently view files are generating using Bootstrap by default.

Incomplete things

  • There is a problem in the select field to parse value. It will be solved in the next version.
  • Could not write all the tests because of short time.

laravel-crud-generator-package's People

Contributors

shreyasarker avatar

Watchers

 avatar

Forkers

must-tests

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.