Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 2.38 KB

README.md

File metadata and controls

68 lines (42 loc) · 2.38 KB

Gerador de CRUDs

Build Status Total Downloads Latest Stable Version License

Isto é um fork do

https://github.com/sohelamin/crud-generator

Mas usando o release 3.3.1, que usa Bootstrap

Customização do resources após o CRUD criado

  • Removi o menu lateral
  • Enxugiei ao meu modo

https://github.com/ribafs2/gerador-cruds/raw/main/resources-custom.zip

This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless development of your applications.

Requirements

Laravel >= 5.3
PHP >= 5.6.4

Installation

composer create-project --prefer-dist laravel/laravel crud
cd crud

composer require ribafs/crud-generator --dev

php artisan vendor:publish --provider="Ribafs\CrudGenerator\CrudGeneratorServiceProvider"

php artisan crud:generate Cadastros --fields='title#string; body#text;' --controller-namespace=App\\Http\\Controllers --form-helper=html

Add ao routes/web.php
Route::resource('/cadastros', 'App\Http\Controllers\CadastrosController');

Executar
php artisan route:clear

php artisan migrate

php artisan serve

http://127.0.0.1:8000/cadastros

Com combo na view
php artisan crud:generate Posts --fields='title#string; content#text; category#select#options={"technology": "Technology", "tips": "Tips", "health": "Health"}' --view-path=admin --controller-namespace=App\\Http\\Controllers\\Admin --route-group=admin --form-helper=html

Documentation

Go through to the detailed documentation

Screencast

Screencast

If you're still looking for easier one then try this Admin Panel

Author

Sohel Amin 📧 Email Me

License

This project is licensed under the MIT License - see the License File for details