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

Laravel CRUD Scaffold

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


composer require moonbear/laravel-crud-scaffold


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


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.