moonbear/laravel-crud-scaffold

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel package to help you generate nearly complete CRUD pages like crazy!

1.5.4 2019-10-16 15:53 UTC

This package is auto-updated.

Last update: 2020-09-09 13:28:15 UTC


README

A Laravel package to help you generate nearly complete CRUD pages like crazy!

Install

composer require moonbear/laravel-crud-scaffold

Configure

php artisan vendor:publish --tag=laravel-crud-scaffold

Use

php artisan mbt:scaffold Model

If everything goes fine, you should get the following output:

Factory created successfully in [project path]/database/factories/ModelFactory.php
Created Migration: [timestamp]_create_models_table
Model created successfully in [project path]/app/Model.php
Controller created successfully in [project path]/app/Http/Controllers/ModelController.php
View successfully created in [project path]/resources/views/models/index.blade.php
View successfully created in [project path]/resources/views/models/_form.blade.php
View successfully created in [project path]/resources/views/models/modals/delete.blade.php
View successfully created in [project path]/resources/views/models/create.blade.php
View successfully created in [project path]/resources/views/models/edit.blade.php
View successfully created in [project path]/resources/views/models/show.blade.php
Request created successfully in [project path]/app/Http/Requests/ModelStoreRequest.php
Request created successfully in [project path]/app/Http/Requests/ModelUpdateRequest.php

Specify Views Directory

php artisan mbt:scaffold Model --views-dir=dashboard

Specify Controller Namespace + Directory

php artisan mbt:scaffold Model --views-dir=dashboard --controller-dir=Dashboard