PHPackages                             laravortex/crud-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. laravortex/crud-generator

ActiveLibrary[Framework](/categories/framework)

laravortex/crud-generator
=========================

CRUD Generator for Laravel (Dev Only)

v1.0.0(3mo ago)01MITPHPPHP ^8.1

Since Jan 25Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ruxla-but/laravortex-crud-generator)[ Packagist](https://packagist.org/packages/laravortex/crud-generator)[ RSS](/packages/laravortex-crud-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

LaraVortex CRUD Generator
=========================

[](#laravortex-crud-generator)

[![Laravel](https://camo.githubusercontent.com/7ed8e3f7374f73d74c5c8b89343aa7b6373adce2a9afcaf3e47cb868ba939d80/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3130253243253230313125324325323031322d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c)](https://laravel.com)[![PHP](https://camo.githubusercontent.com/896c99180bfad5958953c1749e176272a82c42cf42661917138174ad11982221/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://php.net)[![License](https://camo.githubusercontent.com/608c8dfda488178950ce502d7697514db3a6a712579327ed90b9b594260f6355/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE)

🚀 **Turbo CRUD Generator for Laravel**
Generate Model, Controller, View, Route, Layout, dan Sidebar Navigation otomatis hanya dengan satu perintah.

Dirancang untuk **cepat**, **aman dijalankan berulang**, dan **mudah dikustomisasi**.

---

✨ Features
----------

[](#-features)

- One-command CRUD generator (`buat:all`)
- Auto-generate:
    - Model (+ casts)
    - Controller (CRUD + search)
    - Views (`index`, `form`)
    - Routes (`Route::resource`)
- Auto-detect database relationships:
    - `belongsTo`
    - `hasMany`
- Layout &amp; Sidebar system
- Sidebar menu auto-injection (marker-based)
- Anti-duplicate menu
- Batch processing (Turbo Mode)
- Configurable &amp; customizable stubs
- Laravel 10 / 11 / 12 support

---

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 8.1
- Laravel 10.x / 11.x / 12.x
- Database migration sudah dijalankan

---

📦 Installation (Development Only)
---------------------------------

[](#-installation-development-only)

LaraVortex adalah **CRUD Generator** yang ditujukan untuk **development phase**
dan **tidak disarankan digunakan sebagai dependency production**.

Install sebagai **dev dependency**:

```
composer require laravortex/crud-generator --dev
```

Laravel auto-discovery aktif, **tidak perlu register manual**.

---

> 💡 **Why dev-only?**
> LaraVortex hanya digunakan saat proses development untuk menghasilkan kode CRUD. Setelah file CRUD dibuat, aplikasi tidak lagi bergantung pada package ini.

---

🚀 Quick Start
-------------

[](#-quick-start)

### Generate semua tabel + layout

[](#generate-semua-tabel--layout)

```
php artisan buat:all
```

### Generate tabel tertentu

[](#generate-tabel-tertentu)

```
php artisan buat:all products,categories,reviews
```

### Generate layout + sidebar (pertama kali)

[](#generate-layout--sidebar-pertama-kali)

```
php artisan buat:all --layout
```

---

🧭 Sidebar Navigation System
---------------------------

[](#-sidebar-navigation-system)

LaraVortex menggunakan **marker-based injection**.

Pastikan sidebar memiliki marker berikut:

```
{{-- vortex:menu --}}
```

📁 Lokasi default:

```
resources/views/layouts/partials/sidebar.blade.php

```

Menu akan otomatis:

- ditambahkan setelah marker
- tidak diduplikasi
- tidak merusak layout

---

⚙️ Configuration
----------------

[](#️-configuration)

Publish config:

```
php artisan vendor:publish --tag=laravortex-config
```

File:

```
config/vortex.php

```

### Default Config

[](#default-config)

```
return [
    // Folder tujuan output (namespace)
    "namespaces" => [
        "models" => "App\\Models",
        "controllers" => "App\\Http\\Controllers",
    ],

    // DAFTAR TABEL YANG DI-SKIP (BLACKLIST)

    "ignore_tables" => [
        "migrations",
        "users",
        "password_reset_tokens",
        "password_resets",
        "personal_access_tokens",
        "jobs",
        "failed_jobs",
        "job_batches",
        "sessions",
        "cache",
        "cache_locks",

        "telescope_entries",
        "telescope_entries_tags",
        "telescope_monitoring",
        "notifications",
    ],

    "layout" => "layouts.app",
    "section" => "content",
];
```

---

🛠 Customization Guide
---------------------

[](#-customization-guide)

### 1 Custom Layout Name

[](#1-custom-layout-name)

```
'layout' => 'layouts.admin',
```

Generator akan memakai:

```
resources/views/layouts/admin.blade.php

```

---

### 2 Custom Namespace Model / Controller

[](#2-custom-namespace-model--controller)

```
'namespaces' => [
    'models' => 'Domain\\Catalog\\Models',
    'controllers' => 'App\\Http\\Controllers\\Admin',
],
```

---

### 3 Ignore Table Tertentu

[](#3-ignore-table-tertentu)

```
'ignore_tables' => [
    'logs',
    'audit_trails',
],
```

---

🎨 Custom Stub (Advanced)
------------------------

[](#-custom-stub-advanced)

Publish stub:

```
php artisan vendor:publish --tag=laravortex-stubs
```

Struktur:

```
stubs/laravortex/
├── model.stub
├── controller.stub
└── views/
    ├── layout.blade.stub
    ├── index.blade.stub
    ├── form.blade.stub
    └── partials/
        └── sidebar.blade.stub

```

➡️ Jika stub ada di sini, **akan otomatis dipakai**➡️ Tidak perlu fork package

---

🧪 Safe Re-run
-------------

[](#-safe-re-run)

- Menu tidak duplikat
- Layout tidak ditimpa tanpa `--layout`
- Sidebar aman
- Bisa dijalankan berkali-kali

---

📦 Version
---------

[](#-version)

**v1.0.0** – Initial Stable Release

---

📄 License
---------

[](#-license)

MIT License © 2026 – LaraVortex

```
MIT License

Copyright (c) 2026 Ruxla

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance80

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a196029712b6ba65c6d3e57c258a92d83a7428327b07a576b5b5fab16cabc4b?d=identicon)[sudahkahadayang-ops](/maintainers/sudahkahadayang-ops)

---

Top Contributors

[![ruxla-but](https://avatars.githubusercontent.com/u/227786364?v=4)](https://github.com/ruxla-but "ruxla-but (2 commits)")

### Embed Badge

![Health badge](/badges/laravortex-crud-generator/health.svg)

```
[![Health](https://phpackages.com/badges/laravortex-crud-generator/health.svg)](https://phpackages.com/packages/laravortex-crud-generator)
```

###  Alternatives

[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M597](/packages/laravel-ui)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M529](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M145](/packages/laravel-breeze)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
