Looking to hire Laravel developers? Try LaraJobs

laravel-scaffold-command-1 maintained by luiz0067yahoo

Description
create all necessary files for crud with one command.
Author
Last update
2024/10/28 17:59 (dev-main)
License
Links
Downloads
59
Tags

Comments
comments powered by Disqus

laravel scaffold command

composer require luiz0067yahoo/laravel-scaffold-command-1:dev-main

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 Category --fields=name:string,slug:string

or

php artisan scaffold Category --fields=name:string,slug:string --api

php artisan delete all elements


php artisan scaffold  Category --remove