PHPackages                             rafaelnuansa/rncrud - 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. rafaelnuansa/rncrud

ActiveLibrary

rafaelnuansa/rncrud
===================

A powerful Artisan command to generate flexible Laravel CRUD scaffolding

v1.1.2(1mo ago)015↑2900%MITPHPPHP &gt;=8.1 &lt;8.6

Since Mar 27Pushed 1mo agoCompare

[ Source](https://github.com/rafaelnuansa/rncrud)[ Packagist](https://packagist.org/packages/rafaelnuansa/rncrud)[ RSS](/packages/rafaelnuansa-rncrud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (11)Used By (0)

RNCrud - Advanced Laravel CRUD Generator 🚀
==========================================

[](#rncrud---advanced-laravel-crud-generator-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7fa6e3b5775cc8c9d2ac8b784ed22b265a47457688435813ff177551dd0c5b4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616661656c6e75616e73612f726e637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rafaelnuansa/rncrud)[![Total Downloads](https://camo.githubusercontent.com/03ddc49d01588656705993c727a639bbca04fc26e0e6c95bb3fc8347da49e253/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616661656c6e75616e73612f726e637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rafaelnuansa/rncrud)[![License](https://camo.githubusercontent.com/7e319b4836e631e9ae7223b05c51821ac5bbbc596f61c66fdbd6dc7a0ce43a14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72616661656c6e75616e73612f726e637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rafaelnuansa/rncrud)

**RNCrud** is a professional Laravel package designed to accelerate development by generating smart, interactive, and flexible CRUD boilerplates. It is perfect for building both APIs and Blade-based applications.

---

✨ Features (v1.1.2)
-------------------

[](#-features-v112)

- 🛠️ **Interactive Field Builder** (New!) Forget manual typing. If you skip the `--fields` flag, the package will guide you step-by-step to define your columns and data types.
- 🤖 **Modern Interactive UI** Uses **Laravel Prompts** for a sleek terminal experience. Navigate with arrow keys and toggle selections with the spacebar.
- 🌐 **API &amp; Web Support** Choose between a standard Controller (Blade) or an API Controller (JSON response).
- 📂 **Multi-Namespace Support** Create files inside sub-folders (e.g., `Admin/Product`).
- 🔗 **Smart ORM Relations** Automatically detects foreign keys (ending with `_id`) to generate `belongsTo` relationships in Models and `constrained()` in Migrations.
- 🗑️ **Soft Deletes Support** Easily add `SoftDeletes` trait to Models and `softDeletes()` column to migrations with a single flag (`-s`).
- 🎨 **Blade Generation** Generates Blade files (`index`, `create`, `edit`, `show`) with clean and modern structures.

---

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

[](#-requirements)

- PHP: `^8.1 - ^8.5`
- Laravel: `^10.0 | ^11.0 | ^12.0 | ^13.0`

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require rafaelnuansa/rncrud
```

---

🚀 Usage
-------

[](#-usage)

### 1. The Easy Way (Fully Interactive)

[](#1-the-easy-way-fully-interactive)

Simply run the command and follow the prompts:

```
php artisan make:crud ModelName
```

### 2. The Pro Way (Using Flags)

[](#2-the-pro-way-using-flags)

Run everything in one line:

```
php artisan make:crud ModelName --fields="column_name:type"
```

### Pro Examples

[](#pro-examples)

**1. Standard CRUD with Soft Deletes:**

```
php artisan make:crud Post --fields="title:string,body:text" --soft-delete
```

**2. Admin CRUD with Relations (Using Shortcuts):**

```
php artisan make:crud Admin/Product -s --fields="category_id:foreign,name:string,price:integer"
```

**3. Generate only Model and Controller (No Migration):**

```
php artisan make:crud Task -m
```

---

🕹 Interactive Mode Guide
------------------------

[](#-interactive-mode-guide)

- **Arrow Keys**: Navigate between options.
- **Spacebar**: Toggle file selections (Model, Controller, etc.).
- **Enter**: Confirm selection or go to the next step.
- **Field Builder**: Type your field name, select the type from the list, and confirm to add more.

---

🛠 Command Options
-----------------

[](#-command-options)

OptionShortcutDescription`--fields`Define database columns (Format: `name:type,name2:type`).`--soft-delete``-s`Adds `SoftDeletes` trait to Model and column to Migration.`--no-migration``-m`Skips generating the migration file.`--force`Overwrite existing files without warning.`--help`Display detailed usage instructions and examples.---

🧩 Customizing Templates (Stubs)
-------------------------------

[](#-customizing-templates-stubs)

If you want to customize the generated code (e.g., changing the UI to Bootstrap or modifying the Controller logic), publish the stubs:

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

The files will be available in `stubs/vendor/rncrud/`.

---

📁 Output Structure
------------------

[](#-output-structure)

- **Model**: `app/Models/Product.php`
- **Controller**: `app/Http/Controllers/Admin/ProductController.php`
- **Migration**: `database/migrations/YYYY_MM_DD_create_products_table.php`
- **Views**: `resources/views/products/*.blade.php`
- **Route**: Automatically registered in `web.php` or `api.php`

---

📄 License
---------

[](#-license)

This package is open-sourced under the **MIT License**.

---

👨‍💻 Author
----------

[](#‍-author)

Developed by **[Rafael Nuansa](https://github.com/rafaelnuansa)**.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

10

Last Release

46d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.0.1PHP &gt;=8.1 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22130576?v=4)[Rafael Nuansa R](/maintainers/rafaelnuansa)[@rafaelnuansa](https://github.com/rafaelnuansa)

---

Top Contributors

[![rafaelnuansa](https://avatars.githubusercontent.com/u/22130576?v=4)](https://github.com/rafaelnuansa "rafaelnuansa (20 commits)")

### Embed Badge

![Health badge](/badges/rafaelnuansa-rncrud/health.svg)

```
[![Health](https://phpackages.com/badges/rafaelnuansa-rncrud/health.svg)](https://phpackages.com/packages/rafaelnuansa-rncrud)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel/ai

The official AI SDK for Laravel.

732506.3k60](/packages/laravel-ai)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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