Skip to content
A Laravel package to help you generate nearly complete CRUD pages like crazy!
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

Laravel CRUD Scaffold

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

You can’t perform that action at this time.