luiz0067yahoo/laravel-scaffold-command-1

create all necessary files for crud with one command.

dev-main 2023-05-13 12:45 UTC

This package is not auto-updated.

Last update: 2024-06-04 01:36:47 UTC


README

create all necessary files for crud operation with one command

  • model
  • resource controller, api or just regular crud controller
  • migration with fields
  • feature tests
  • views, if crud is not api
    • index
    • create
    • show
    • edit
  • resources, if crud is api
    • resource class
    • resource collection class
php artisan vendor:publish --tag=scaffold-stubs

usage

php artisan scaffold {your entity name}

like php artisan scaffold Category --fields=name:string,slug:string,parent_id:foreignId

php artisan delete

like php artisan scaffold remove Category