Download the PHP package mosweed/laravel-auto-crud without Composer
On this page you can find all versions of the php package mosweed/laravel-auto-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mosweed/laravel-auto-crud
More information about mosweed/laravel-auto-crud
Files in mosweed/laravel-auto-crud
Download mosweed/laravel-auto-crud
More information about mosweed/laravel-auto-crud
Files in mosweed/laravel-auto-crud
Vendor mosweed
Package laravel-auto-crud
Short Description Complete CRUD scaffolding generator for Laravel 12 with API, Blade views, Livewire components, automatic routing, custom layouts, and more
License MIT
Homepage https://github.com/Mosweed/laravel-auto-crud
Package laravel-auto-crud
Short Description Complete CRUD scaffolding generator for Laravel 12 with API, Blade views, Livewire components, automatic routing, custom layouts, and more
License MIT
Homepage https://github.com/Mosweed/laravel-auto-crud
Please rate this library. Is it a good library?
Informations about the package laravel-auto-crud
# Laravel Auto CRUD
**Generate complete CRUD scaffolding in seconds**
[](https://autocrud.mohmadyazansweed.nl)
[](https://github.com/Mosweed/laravel-auto-crud/actions/workflows/tests.yml)
[](https://packagist.org/packages/mosweed/laravel-auto-crud)
[](https://packagist.org/packages/mosweed/laravel-auto-crud)
[](https://packagist.org/packages/mosweed/laravel-auto-crud)
[](https://github.com/Mosweed/laravel-auto-crud)
[Installation](#-installation) •
[Quick Start](#-quick-start) •
[Features](#-features) •
[Documentation](DOCUMENTATION.md)
⚡ Features
| Feature | Description |
|---|---|
| 🏗️ Complete CRUD | Models, Controllers, Views, Routes in one command |
| 🌐 API & Web | Generate API and Web controllers simultaneously |
| 🎨 Modern Views | Tailwind v4 & Bootstrap 5 with dark mode |
| ⚡ Livewire | Real-time table and form components |
| 🛣️ Auto Routing | Routes automatically added to your files |
| 🏠 App Layout | Ready-to-use layout with navigation |
| 🎯 Tailwind v4 | Auto-detects and configures CSS variables |
| 🗑️ Soft Deletes | Full restore/force-delete support |
| 🔍 Filter & Sort | Built-in query traits |
| 🧪 Tests | Automatic Pest/PHPUnit generation |
| 📋 JSON Config | Batch generate multiple CRUDs |
| ↩️ Rollback | Auto cleanup on errors |
📋 Requirements
- PHP 8.2+
- Laravel 11.x or 12.x
📦 Installation
Publish Layout & Welcome Page
Publish Configuration (Optional)
🚀 Quick Start
Your CRUD is ready at /products ✨
💻 Usage
Basic Command
This generates:
- ✅ Model with Filterable and Sortable traits
- ✅ Web Controller
- ✅ API Controller
- ✅ Form Requests (Store & Update)
- ✅ Policy
- ✅ Blade Views (index, create, edit, show)
- ✅ Routes in
web.phpandapi.php
Command Options
| Option | Description |
|---|---|
--type=api\|web\|both |
Output type (default: both) |
--css=tailwind\|bootstrap |
CSS framework (default: tailwind) |
--all |
Generate migration, factory, seeder, and tests |
--force |
Overwrite existing files |
--soft-deletes |
Add soft delete support |
--livewire |
Generate Livewire components |
--tests |
Generate feature and unit tests |
--fields=... |
Define fields inline |
--belongsTo=Model |
Add belongsTo relationship |
--hasMany=Model |
Add hasMany relationship |
--belongsToMany=Model |
Add belongsToMany relationship |
--json=path |
Generate from JSON configuration |
--add-to-nav |
Add to navigation menu |
Defining Fields
Supported Types
| Type | Database Column |
|---|---|
string |
VARCHAR |
text |
TEXT |
integer |
INTEGER |
boolean |
BOOLEAN |
date |
DATE |
datetime |
DATETIME |
decimal |
DECIMAL |
json |
JSON |
foreignId |
BIGINT UNSIGNED |
Modifiers
nullable- Field can be nullunique- Add unique constraint255- String length
Relationships
JSON Configuration
Create a crud.json file:
Run:
🏠 Layout Command
| Option | Description |
|---|---|
--css=bootstrap |
Use Bootstrap instead of Tailwind |
--force |
Overwrite existing layout |
--welcome |
Also publish welcome/dashboard page |
--models=Product |
Pre-populate navigation |
Welcome Page
🔍 Filtering & Sorting
The generated models include Filterable and Sortable traits:
🎨 Tailwind v4 Colors
Laravel 12 uses Tailwind v4 by default. Edit resources/css/app.css:
📁 Generated Files
📖 Documentation
For complete documentation, see DOCUMENTATION.md.
🧪 Testing
📝 Changelog
See CHANGELOG.md for recent changes.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
🔒 Security
If you discover any security-related issues, please open an issue on GitHub.
👨💻 Credits
📄 License
The MIT License (MIT). See LICENSE for more information.
**[⬆ Back to Top](#laravel-auto-crud)**
Made with ⚡ by [Mosweed](https://github.com/Mosweed)
All versions of laravel-auto-crud with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/filesystem Version ^11.0|^12.0
The package mosweed/laravel-auto-crud contains the following files
Loading the files please wait ...