gwmoura / crudcmd by gwmoura

Crud Agnostic Template.
1,035
0
4
Package Data
Maintainer Username: gwmoura
Maintainer Contact: gwmoura@gmail.com (George Moura)
Package Create Date: 2017-03-08
Package Last Update: 2017-05-18
Language: PHP
License: MIT
Last Refreshed: 2024-11-26 15:13:13
Package Statistics
Total Downloads: 1,035
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 4
Total Forks: 1
Total Open Issues: 0

crudcmd

Dependencia

Para usar esse pacote você precisa do pacote semge/core

Usando

composer require gwmoura/crudcmd:dev-master

Copie os templates

./vendor/bin/crudcmd template:copy laravel

Criando um crud simples

./vendor/bin/crudcmd crud:create laravel Post

Arquivos gerados

  • app/Models/Post
  • app/Http/Controllers/PostController
  • app/Repositories/PostRepository
  • database/factories/PostFactory
  • database/migrations/*_create_post_table
  • resources/views/post/[index, create, edit, show]

Adicione Route::resource('post', 'PostController') no routes/web.php Adicione os campos do post na migration Execute php artisan migrate Execute php artisan serve e acesse http://localhost:8000