PHPackages                             medrachy/crud-livewire - 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. [Admin Panels](/categories/admin)
4. /
5. medrachy/crud-livewire

ActiveLibrary[Admin Panels](/categories/admin)

medrachy/crud-livewire
======================

Generate the CRUD livewire component for a model

03PHP

Since Sep 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MedRachy/CrudLivewire)[ Packagist](https://packagist.org/packages/medrachy/crud-livewire)[ RSS](/packages/medrachy-crud-livewire/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CrudLivewire
============

[](#crudlivewire)

Generate the livewire class and view for a model using the fillable attributes or the database columns, by running one command and providing the table name as argument this package generate the files (class/view) with all CRUD functions

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

Features
--------

[](#features)

- Use the model instance as public variable
- Use Jetstream components
- Create , Update and Delete using modals
- Manage inputs and types directly from the livewire class
- Paginations

Requirements
------------

[](#requirements)

- Laravel 8+
- Jetstream with livewire stack

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

[](#installation)

You can install the package via Composer

```
 composer require medrachy/crud-livewire
```

Usage
-----

[](#usage)

After installation, run this command

```
 php artisan crud:build {tableName}   //example : users
```

This command will perfom below actions :

- generate the proper (className, modelName and viewName) from the tableName
- create livewire directory if it doesn't exist "/app/Http/Livewire"
- generate the livewire class "/app/Http/Livewire/{className}.php"
- create livewire directory if it doesn't exist "/resources/views/livewire"
- generate the livewire view "/resources/views/livewire/{viewName}.blade.php"

Next open the livewire class generated "/app/Http/Livewire/{className}.php" and add the proper properties for $rules and $inputTypes

```
// Add the input type for each attribute
public array $inputTypes = [
        // 'attribute' => 'inputType',
        // example :
        'name' => 'text',
        'email' => 'email',
];

// Add rules
protected $rules = [
    //  'modalName.attribute' => 'required',
    // example :
    'user.name' => 'required',
    'user.email' => 'required|email',
];
```

And thats it, now you can render you livewire component like so :

```
@livewire('{viewName}') // example @livewire('user-crud)
```

### Jetstream

[](#jetstream)

This package use Jetstream modal component, if you dont use Jetstream in your application you need to edit the view generated by this package.

License
-------

[](#license)

The MIT License (MIT). Please see [License](LICENSE)File for more information

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ca47ac5969120ec9503fac251290e93542a017e3cb9cce86922ca75cc2067f9?d=identicon)[medRachy](/maintainers/medRachy)

---

Top Contributors

[![MedRachy](https://avatars.githubusercontent.com/u/13630972?v=4)](https://github.com/MedRachy "MedRachy (10 commits)")

---

Tags

crudlaravellivewirepackagephp

### Embed Badge

![Health badge](/badges/medrachy-crud-livewire/health.svg)

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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