govindtomar/crudgenerator

Laravel crud generator

v1.2.2 2022-11-02 17:30 UTC

This package is auto-updated.

Last update: 2024-08-30 01:09:52 UTC


README

Installation

composer require govindtomar/crudgenerator
php artisan vendor:publish --provider="GovindTomar\CrudGenerator\CrudGeneratorServiceProvider"

Configuration

You will find a configuration file located at config/crud.php

'code_type' => 'API',

Examples

CRUD Create

php artisan make:crud ContactMe --fields=text*name,email*email,text*subject,textarea*message

CRUD with Relationship

php artisan make:crud ContactMe --fields=text*name,email*email,text*subject,textarea*message --model=User

CRUD with migration

php artisan make:crud ContactMe --fields=text*name,email*email,text*subject,textarea*message --migration=yes

CRUD with Relationship & Migration

php artisan make:crud Post --fields="text*name,image*profile,image*cover,select*user",toggle*status,toggle*publish --model=User --migration=yes

Available fields

text | email | file | hidden | image | number | password | date | radio | select | textarea | toggle