A developer productivity extension for Super-Admin that automates CRUD generation for Laravel applications.
From a simple web interface, you can generate Models, Controllers, Views, Migrations, Routes, and Pest tests instantly.
This extension eliminates repetitive boilerplate coding by providing a form-based interface to create Laravel CRUD modules.
It supports generating:
- Eloquent Models
- Migrations
- Controllers (Admin, Web, API)
- Blade Views
- Routes (Admin, Web, API)
- Pest Unit & Feature Tests
All generated code follows a consistent and maintainable structure.
flowchart TD
A[Open Scaffold Form] --> B[Fill Details: Model, Controller, Fields]
B --> C[Submit to ScaffoldController@store]
C --> D[Validate & Save to Database]
D --> E[Generate Laravel Resources]
E --> F[Insert Routes: Admin, Web, API]
F --> G[Add Menu Entry (optional)]
G --> H[Manage from Dashboard]
- Models
- Controllers (Admin, Web, API)
- Migrations
- Blade Views
- Routes (Admin, Web, API)
- Pest Test Stubs (Unit + Feature)
- Backup before overwriting
- Remove generated files on scaffold deletion
- Optionally add an admin panel menu entry
- Includes
ResponseMappertrait for consistent JSON output
- Rollbacks on failure
- Logs all important actions
- Automatic Resource Generation: Generate models, controllers (admin, web, API), migrations, Blade views, routes (admin, web, API), and test cases in Pest.
- Intelligent File Handling: Backup existing files before overwriting and remove unused scaffold files on deletion.
- Admin Menu Integration: Automatically adds a menu link to the admin panel.
- API Response Standardization: Includes
ResponseMappertrait for consistent JSON formatting. - Error Handling: Rolls back partial files on failure and logs all important actions.
- Open the Scaffold Form – Go to
/scaffold/createin your browser. - Fill in Details – Model name, table name, controller name, view path, and add multiple fields with type, name, and label.
- Submit – Backend validates data and generates resources instantly.
- Manage from Dashboard – View, download, or delete scaffolds from
/scaffold/list.
- ** Time Saver** – Generate full CRUD in seconds.
- ** Consistency** – Standardized Laravel code structure.
- ** Safety** – Backup before overwrite.
- ** Extensible** – Add more generation rules easily.
- Ship faster – Go from schema to Admin + API + Blade in minutes.
- Stay consistent – Shared conventions reduce “decision tax.”
- Safer refactors – Included tests catch regressions early.
- Team-friendly – Great onboarding and shared patterns.
Before starting, make sure you have:
- Laravel project with super-admin installed.
- PHP 8.1+
- Composer
- Node.js & npm (for asset compilation)
- Database configured (MySQL, PostgreSQL, Oracle, or SQL Server supported).
Open your terminal in the Laravel project root and run:
composer require super-admin-org/helpersThis installs the Helpers package, which includes the Scaffolding System.
Once installed
Then publish the assets and configuration:
php artisan vendor:publish --tag=super-admin-helpersThis command will:
- Publish Blade views for scaffold management.
- Publish migration files for scaffold storage.
- Add default configuration files.
The Scaffolding System stores metadata about each generated CRUD in a dedicated table.
Run:
php artisan migrateThis creates the scaffolds and related tables.
To generate seed data from existing tables, run:
php artisan scaffold:generate-seedersif you want to remove Remove prefix from table name to generate seed
php artisan scaffold:generate-seeders --remove-prefix=prefix_to_remove-
Open the Scaffold Form
Navigate to/scaffold/create. -
Fill in Details
- Model Name
- Table Name
- Controller Name
- View Path
- Field Definitions (type, name, label, etc.)
-
Generate Resources
On submission:- Files are generated
- Routes are registered
- Optional menu link is added
-
Manage from Dashboard
View, download, or delete scaffolds from/scaffold/list.
- ** Save Time** – Full CRUD in seconds
- ** Consistent** – Unified Laravel code patterns
- ** Safe** – Backups prevent accidental loss
- ** Extensible** – Easily add new generation rules
app/
├─ Admin/Controllers/StudentInfoController.php
├─ Http/Controllers/Api/StudentInfoApiController.php
├─ Http/Controllers/Web/StudentInfoController.php
├─ Models/StudentInfo.php
database/migrations/
├─ 2025_..._create_student_info_table.php
resources/views/student_infos/
├─ index.blade.php
├─ create.blade.php
├─ edit.blade.php
├─ _form.blade.php
routes/
├─ api.php
├─ web.php
tests/
├─ Pest.php
├─ Unit/Models/StudentInfoTest.php
├─ Feature/API/StudentInfoApiTest.php
├─ Feature/Web/StudentInfoWebTest.php
├─ Feature/Admin/StudentInfoAdminTest.php
Generated Pest test stubs include:
- Unit Tests – Model configuration, traits, and fillables
- Feature Tests – CRUD for Admin, Web, and API endpoints
Run tests:
./vendor/bin/pest- Backup Location:
storage/scaffold_backups - Generated Routes:
- Admin:
routes/admin.php - Web:
routes/web.php - API:
routes/api.php
- Admin:
- Trait Location:
app/Traits/ResponseMapper.php
We welcome contributions! You can help with:
- Writing & improving tests
- Suggesting new generation features
- Translating documentation
- Sponsoring development
Licensed under the MIT License.
- Original Concept: laravel-admin-ext/helpers
- Maintained by: Super Admin
- Special Thanks: z-song (Original Laravel-Admin Author)