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(11mo ago)121MITPHPPHP ^8.2

Since May 9Pushed 5mo 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 today

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

33

—

LowBetter than 72% of packages

Maintenance62

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

354d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11003751?v=4)[Ajay Dwivedi](/maintainers/adwiv)[@adwiv](https://github.com/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

[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[code16/sharp

Laravel Content Management Framework

79164.7k8](/packages/code16-sharp)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[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.

3991.8k](/packages/codewithdennis-larament)[r2luna/brain

Brain: A process-driven architecture alternative for your Laravel Application.

6338.7k1](/packages/r2luna-brain)

PHPackages © 2026

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