Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shreyasarker/laravel-crud-generator-package
A simple CRUD generator package. This package will generate Controller, Migration, Model, Request, Views and Route through a single command.
https://github.com/shreyasarker/laravel-crud-generator-package
laravel-crud-generator laravel8x php7
Last synced: 21 days ago
JSON representation
A simple CRUD generator package. This package will generate Controller, Migration, Model, Request, Views and Route through a single command.
- Host: GitHub
- URL: https://github.com/shreyasarker/laravel-crud-generator-package
- Owner: shreyasarker
- License: mit
- Created: 2023-07-21T17:28:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-21T17:58:26.000Z (over 1 year ago)
- Last Synced: 2024-12-06T05:45:44.326Z (23 days ago)
- Topics: laravel-crud-generator, laravel8x, php7
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- number
- integer
- bigint
- mediumint
- tinyint
- smallint
- decimal
- double
- float
- selectForm 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.