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

ActiveLibrary[Admin Panels](/categories/admin)

justin0122/crud
===============

crud - A simple Laravel package.

053[1 issues](https://github.com/Justin0122/crud/issues)Blade

Since Oct 29Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Setting up
----------

[](#setting-up)

### Dependencies

[](#dependencies)

This package requires the following dependencies:

- [Laravel Livewire](https://livewire.laravel.com/docs/quickstart)
- [Tailwind CSS](https://tailwindcss.com/docs/installation)
- [Flux](https://fluxui.dev/)

### Pre-requisites

[](#pre-requisites)

To install the package, you need to set the minimum stability to dev in the composer.json file:

```
{
...
    "minimum-stability": "dev",
    "prefer-stable": true
}
```

### Installation

[](#installation)

```
composer require justin0122/crud
```

### Configuration

[](#configuration)

Add the service provider to the bootstrap/providers.php file:

```
# config/app.php

'providers' => [
    ...
    \Justin0122\Crud\CrudServiceProvider::class,
    ...
],
```

Usage:
------

[](#usage)

To generate a crud, run the following command:

```
php artisan crud:make Post
```

 *Post is the name of the model.*This will generate the following files:

```
app/Livewire/Post.php
app/Livewire/Posts.php
app/Models/Post.php

database/migrations/2021_01_01_000000_create_posts_table.php

resources/views/livewire/posts/index.blade.php
resources/views/livewire/crud/create.blade.php
resources/views/livewire/crud/edit.blade.php

```

 Details### Forms

[](#forms)

The forms are created using the `$fillables` array in the model. If you want to add more fields, just add them to the array in the model.

### Views

[](#views)

Because the forms are generated dynamically, they are made global. This means that you can use them in other views as well. The views are located in the `resources/views/livewire/crud` folder.

Adding the fillable fields
--------------------------

[](#adding-the-fillable-fields)

To make the crud work, you need to add the fillable fields in the model:

```
# app/Models/Post.php

protected $fillable = [
    'title',
    'body',
];
```

Adding the routes
-----------------

[](#adding-the-routes)

Add the routes in the web.php file:

```
# routes/web.php

use App\Http\Livewire\Post;

    Route::get('/post', fn() => view('post'))->name('post');

    Route::delete('/post/{id}', fn($id) => redirect()->route('post'))->name('post.delete');

    Route::get('/post?id={id}', fn($id) => view('post'))->name('post.edit');
```

Adding the Livewire component
-----------------------------

[](#adding-the-livewire-component)

Add the Livewire component to the view:

```

```

Displaying the Posts
--------------------

[](#displaying-the-posts)

```

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

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/fc3cafb5e019923a2004103969f58bbaa84727b26d2f20945b6faf40186938e3?d=identicon)[Justin0122](/maintainers/Justin0122)

---

Top Contributors

[![Justin0122](https://avatars.githubusercontent.com/u/85618156?v=4)](https://github.com/Justin0122 "Justin0122 (2 commits)")

---

Tags

crudcrud-automationlaravellaravel-packagelivewire3

### Embed Badge

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

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

###  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)
