PHPackages                             nvd/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. nvd/crud-generator

AbandonedPhp-library[Framework](/categories/framework)

nvd/crud-generator
==================

CRUD generator for Laravel 5.x with minimum setup required

1.0.5(10y ago)13721.4k50[4 PRs](https://github.com/engrnvd/laravel-crud-generator/pulls)MITPHPPHP &gt;=5.5.9

Since Jan 29Pushed 8y ago18 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

NVD CRUD Generator
==================

[](#nvd-crud-generator)

CRUD generator for Laravel 5.x

- [Screenshots](#screenshots)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Customizing NVD CRUD Generator](#customizing-nvd-crud-generator)
- [Known Problems and Their Solutions](#known-problems-and-their-solutions)

Screenshots
-----------

[](#screenshots)

[![index](https://github.com/engrnvd/laravel-crud-generator-docs/raw/master/images/index.png)](https://github.com/engrnvd/laravel-crud-generator-docs/blob/master/images/index.png)[![command](https://github.com/engrnvd/laravel-crud-generator-docs/raw/master/images/command.png)](https://github.com/engrnvd/laravel-crud-generator-docs/blob/master/images/command.png)[![edit](https://github.com/engrnvd/laravel-crud-generator-docs/raw/master/images/edit.png)](https://github.com/engrnvd/laravel-crud-generator-docs/blob/master/images/edit.png)

Features
--------

[](#features)

- Single page CRUD operations
- Inline, AJAX based table editing
- Form Input types are determined from the table field types
- Easy to set up (No need to install a separate package to handle Html and Forms)
- Easy to customize (Through configurations and custom templates)
- Intelligent route generation
    - Checks overwrite
    - Compatible with Laravel 5.2 ('web' route group)
- Auto route model bindings
- No need to specify field names and types
- Fully functional Controllers and Models
- Support for enum types
- Intelligent search / filtering by any field
- Sort by any field

Installation
------------

[](#installation)

1. Download:

    - Run `composer require nvd/crud-generator` from the project directory
2. Register the Service Provider in `config/app.php`:

    ```
    'providers' => [
        ...
        ...
        Nvd\Crud\Providers\NvdCrudServiceProvider::class,
    ],

    ```
3. Publish configuration file and view templates:

    - Run `php artisan vendor:publish` from the project directory
4. Done!

Usage
-----

[](#usage)

### Generating CRUD for a Specific Table

[](#generating-crud-for-a-specific-table)

Run `php artisan nvd:crud table_name`

Now you can access  to access the CRUD app. (Here `table-name` refers to the *singular, slugged* version of the table name. e.g.

- Url for the table *phones* will be
- Url for the table *user\_profiles* will be
- Url for the table *people* will be

Customizing NVD CRUD Generator
------------------------------

[](#customizing-nvd-crud-generator)

### Configuration File

[](#configuration-file)

NVD CRUD generator publishes a configuration file `config/crud.php`. You can modify the default settings of the package here. The file is completely documented and hence self explanatory.

### Templates

[](#templates)

In case you don't like the default code that is generated for you, the templates for the generated model, controller and the views are located in the `/resources/views/vendor/crud` directory. You are free to edit them as you like. Or make a copy of any of the templates directory and refer to it in the `config/crud.php`.

Known Problems and Their Solutions
----------------------------------

[](#known-problems-and-their-solutions)

### Layout and Styling

[](#layout-and-styling)

- The default view templates use `vendor.crud.common.app` template as the layout. If you are using a different layout, specify it in the `config/crud.php`
- The default view templates use classes from [Bootstrap](http://getbootstrap.com) and [Font Awesome](https://fortawesome.github.io/Font-Awesome/). You can edit the templates and not use them or you can simply include them in your layout like the one below:

    ```

        Laravel Sandbox

            @yield("content")

    ```

### Routes Declaration

[](#routes-declaration)

- For Laravel 5.2, the generator generates routes inside the closure of the route group that applies the 'web' middleware group in the `/app/Http/route.php` out of the box, as follows:

    ```
    Route::group(['middleware' => ['web']], function () {
        Route::resource('user-profile','UserProfileController');
        //
    });

    ```

    If, for some reasons, the routes are generated outside the closure, you should move them inside to avoid any exception while creating, editing or deleting a resource.
- You can also tell the generator explicitly where to declare the routes by adding a comment: 'nvd-crud routes go here' and the generator will place the route declaration just after the comment.

    ```
    Route::group(['middleware' => ['web']], function () {
        // nvd-crud routes go here
    });

    ```

### Exception: Class "Input" not found

[](#exception-class-input-not-found)

- Although it happens rarely, sometimes the facade "Input" is not declared in `config/app.php`. Declare the alias and the exception will be gone:

```
    'aliases' => [
        //
        'Input'     => Illuminate\Support\Facades\Input::class,
        //
    ],

```

**Note:** Use of Input facade was removed in the latest version. So this error is expected not to appear anyway.

### Primary Keys Other Than 'id'

[](#primary-keys-other-than-id)

- At the moment NVD CRUD generator accepts only 'id' column as the primary key. Having a primary key other than 'id' will be supported in upcoming versions. But right now, you have to follow the convention.

### Laravel Eloquent Conventions

[](#laravel-eloquent-conventions)

- For smooth operations, Laravel conventions should be followed when creating database tables. If you are facing errors / exceptions mentioning primary keys, table names or timestamps (`created_at`, `updated_at`), please refer to [Laravel docs about conventions](https://laravel.com/docs/5.2/eloquent#eloquent-model-conventions).

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity59

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 ~4 days

Total

2

Last Release

3748d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f1264f3f8dee02bb78d3a89d6a5c14c5ed039a3474f0a3cce4a49248f39a6d4?d=identicon)[engrnvd](/maintainers/engrnvd)

---

Top Contributors

[![engrnvd](https://avatars.githubusercontent.com/u/12119716?v=4)](https://github.com/engrnvd "engrnvd (57 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M119](/packages/cakephp-chronos)

PHPackages © 2026

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