gwmoura / crudcmd
Crud Agnostic Template.
Installs: 1 035
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- guzzlehttp/guzzle: ~4.0|~5.0|~6.0
- symfony/console: ~2.3|~3.0
- symfony/process: ~2.3|~3.0
This package is not auto-updated.
Last update: 2024-11-10 03:19:59 UTC
README
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