PHPackages                             developernaren/laravel-crud - 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. developernaren/laravel-crud

ActiveCrud[Framework](/categories/framework)

developernaren/laravel-crud
===========================

Package to create controller, models, migrations, requests and views

4282PHP

Since Nov 21Pushed 10y ago3 watchersCompare

[ Source](https://github.com/developernaren/laravel-crud)[ Packagist](https://packagist.org/packages/developernaren/laravel-crud)[ RSS](/packages/developernaren-laravel-crud/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-crud
============

[](#laravel-crud)

Crud Operations for Laravel

```
$ composer require developernaren/laravel-crud

```

Note: This pacakage is still not a stable package, hence not suitable for production.

```
DeveloperNaren\Crud\Providers\CrudServiceProvider::class

```

add this line to the service providers list in app.config.php and that's it.

```
$ php artisan vendor:publish

```

To copy the config file to your config directory

I am making this package highly customizable. A lof of options in this package can be customized through the config file.

```
$ php artisan crud:whole

```

This command asks two questions

- What entity are you trying to create crud for? The answer should be the entity name. Eg: category
- Fields string in format : separated by comma(,) Field and Type separated by comma. Eg: name:str,description:text

This command generates controller, model, request, create view, list view, migration files.

If you do not have to generate all the files, You can generate things individually

```
$ php artisan crud:controller

```

This generates controller for the given entity

```
$ php artisan crud:model

```

This generats model for the given entity with fillable

We can also generate relations this package. The supplied format to support realtions

`:fr-.` for not null foreign keys

`:nlfr-.` for nullable foreign keys

The foreign keys are made generic to support migration and relation.

`$  php artisan crud:model blog name:str,author_id:nlfr-users.id`

This command will generate a method

```
function user() {
   $this->belongsTo( 'User' );
}

```

in Blog.php

Meaning a blog belongs to a user

```
$ php artisan crud:view

```

This generates create.blade.php and list.blade.php for the given entity with the fields

This module can now generate input, textarea, select, radio, checkbox based on the fields provided

```
$ php artisan crud:request

```

This generates FormRequest class for the add form

```
$ php artisan request:migration

```

This generates migration for the given entity with the mentioned fields

We can also generate foreign keys through this package. The supplied format to support foreign keys should be

`:fr-.` for not null foreign keys

`:nlfr-.` for nullable foreign keys

We can also provide path for the migration to be created at in config file.

Todos:

- Make the template dynamic
- List the replacable template variables so that user can create custom templates for the generated files
- Support foreign leys for migrations

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.2% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3628468?v=4)[developernaren](/maintainers/developernaren)[@developernaren](https://github.com/developernaren)

![](https://www.gravatar.com/avatar/538913e63db7d697630bc73fb1a60676b40702c7c12e0e92768c7ca007aee780?d=identicon)[mln.mln.mln](/maintainers/mln.mln.mln)

---

Top Contributors

[![developernaren](https://avatars.githubusercontent.com/u/3628468?v=4)](https://github.com/developernaren "developernaren (33 commits)")[![ujwaldhakal](https://avatars.githubusercontent.com/u/11195862?v=4)](https://github.com/ujwaldhakal "ujwaldhakal (4 commits)")

### Embed Badge

![Health badge](/badges/developernaren-laravel-crud/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M829](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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