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

ActiveLibrary[Framework](/categories/framework)

adwiv/laravel-crud-daisyui
==========================

Generate CRUD Model, Controller, Resource, Request and Views for Laravel with DaisyUI

0.4.3(10mo ago)121MITPHPPHP ^8.2

Since May 9Pushed 3mo ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (11)Used By (0)

### Laravel CRUD &amp; View Generator

[](#laravel-crud--view-generator)

This package generates model, controllers, request, resource and views for CRUD operations.

This package is meant primarily for personal use.

#### Installation

[](#installation)

Install the package in the development mode only. Since the package generates files, it isn't needed at all during production.

```
composer require --dev adwiv/laravel-crud-daisyui
npm i -D daisyui@latest sweetalert2
```

add daisyui to resources/css/app.css

```
@plugin 'daisyui';

@layer components {
    .table-hover tr {
        @apply hover:bg-base-300;
    }

    .input-validator {

        &:user-invalid,
        &:has(:user-invalid),
        &[aria-invalid]:not([aria-invalid="false"]) {
            @apply validator;
        }
    }

    .select select:not([multiple]) {
        color: color-mix(in oklch, currentColor 50%, #0000);
    }

    .select select:has(option:checked:not([value])),
    .select select:has(option:checked:not([value=""])) {
        color: currentColor;
    }
}
```

update resources/js/app.js

```
import Swal from 'sweetalert2';
window.Swal = Swal;
```

#### Usage

[](#usage)

To use this generator, you must have an existing database table for the model and CRUD you want to generate. First, create a migration, and migrate it to create the tables. Then, to generate all files use one of the following commands

```
php artisan crud:all Student
php artisan crud:all Student [--prefix admin]
php artisan crud:all Student [--route-prefix admin] [--view-prefix admin]
php artisan crud:all Student [--table students]
```

You can also generate individual files:

```
# Create Student model from students table
php artisan crud:model Student
# Create enums for all enum & set fields in students table
php artisan curd:enum Student
# Create the Request class for Student Model
php artisan crud:request StudentRequest
# Create the Resource class for Student Model
php artisan crud:resource StudentResource
# Create the Resource controller Student Model
php artisan crud:controller Admin/StudentController
# Create the API Resource controller Student Model
php artisan crud:controller Api/StudentController --api
# Create the index view for student model (admin/students/index.blade.php)
php artisan crud:view admin.students.index
# Create the index view for student model (admin/students/show.blade.php)
php artisan crud:view admin.students.show
# Create the index view for student model (admin/students/edit.blade.php)
php artisan crud:view admin.students.edit
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

10

Last Release

302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ddd0efe37ee57281e6f26e490a4dd14057f4b753052a320bab03eb0aea656e?d=identicon)[adwiv](/maintainers/adwiv)

---

Top Contributors

[![adwiv](https://avatars.githubusercontent.com/u/11003751?v=4)](https://github.com/adwiv "adwiv (17 commits)")

### Embed Badge

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

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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