govindtomar/crud-generator-api

Laravel crud generator api

1.0.2 2023-12-03 12:00 UTC

This package is auto-updated.

Last update: 2024-09-03 13:28:43 UTC


README

Installation

composer require govindtomar/crud-generator-api
php artisan vendor:publish --provider="GovindTomar\CrudGeneratorApi\CrudGeneratorApiServiceProvider"

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