anas / easy-dev
๐ A powerful Laravel package that supercharges development with beautiful UI, interactive CRUD generation, Repository & Service patterns, and intelligent relationship detection.
Fund package maintenance!
anasnashat
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 1
Open Issues: 0
Type:laravel-package
Requires
- php: ^8.1
- illuminate/console: ^9.0|^10.0|^11.0|^12.0
- illuminate/contracts: ^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^9.0|^10.0|^11.0|^12.0
- illuminate/filesystem: ^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0|^9.0|^10.0|^11.0
- phpunit/phpunit: ^9.5|^10.0|^11.0
This package is auto-updated.
Last update: 2025-08-20 06:39:59 UTC
README
Laravel Easy Dev v2 is a powerful package that supercharges your Laravel development workflow with beautiful UI, interactive CRUD generation, Repository & Service patterns, and intelligent relationship detection.
โจ Features
- ๐ Enhanced CRUD Generation - Interactive CRUD with Repository and Service patterns
- ๐ฏ Beautiful UI - Stunning command-line interface with progress bars and colors
- ๐ Auto Relationship Detection - Intelligent schema analysis and relationship generation
- ๐๏ธ Clean Architecture - Repository and Service layer with interfaces
- ๐ Smart Form Requests - Intelligent validation rules with custom error messages
- ๐ API & Web Support - Generate controllers for both API and web routes
- ๐จ Customizable Templates - Flexible stub templates for all generated files
- ๐งช Test Generation - Generate comprehensive feature and unit tests
- ๐ Comprehensive Documentation - Built-in help system with examples
- ๐ฎ Interactive Mode - Step-by-step guided setup wizard
๐ฆ Installation
Install the package via Composer:
composer require anas/easy-dev --dev
The package will automatically register itself via Laravel's package discovery.
โ๏ธ Configuration
Publish the configuration file:
php artisan vendor:publish --tag=easy-dev-config
Publish the stub files (optional):
php artisan vendor:publish --tag=easy-dev-stubs
๐ Quick Start
Get started in seconds with the interactive mode:
# Interactive CRUD generation php artisan easy-dev:make Product --interactive # Quick CRUD with Repository and Service php artisan easy-dev:crud Order --with-repository --with-service # Auto-detect all relationships php artisan easy-dev:sync-relations --all
๐ Documentation
- ๐ Complete Documentation - Full guide with examples
- โก Quick Start Guide - Get up and running fast
- ๐ง Command Reference - All commands and options
- ๐ Relationship Detection - Auto-relationship system
- โ๏ธ Configuration Guide - Customize everything
- ๐ API Development - API-first development
- ๐ก Examples & Use Cases - Real-world examples
๐ฏ Core Commands
Enhanced CRUD Generation
# Interactive mode with guided setup php artisan easy-dev:make Product --interactive # Generate with Repository and Service patterns php artisan easy-dev:crud Order --with-repository --with-service # API-only generation php artisan easy-dev:make User --api-only --with-service
Relationship Management
# Auto-detect all relationships php artisan easy-dev:sync-relations --all # Sync specific model php artisan easy-dev:sync-relations User # Add custom relationship php artisan easy-dev:add-relation User hasMany Post
Utility Commands
# Generate API resources php artisan easy-dev:api-resource Product # Generate repository pattern php artisan easy-dev:repository Order # Beautiful help guide php artisan easy-dev:help # UI demonstration php artisan easy-dev:demo-ui
๐จ Beautiful UI
Experience the stunning command-line interface:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ โ โ ๐ Laravel Easy Dev CRUD Generator ๐ โ โ โ โ Generate complete CRUD with Repository & Service patterns โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ 10/10 [============================] 100% โจ Finalizing...
๐๏ธ Generated Architecture
Laravel Easy Dev v2 creates a clean, maintainable architecture:
app/
โโโ Http/
โ โโโ Controllers/
โ โ โโโ ProductController.php # Web controller
โ โ โโโ Api/
โ โ โโโ ProductApiController.php # API controller
โ โโโ Requests/
โ โ โโโ StoreProductRequest.php # Validation
โ โ โโโ UpdateProductRequest.php # Validation
โ โโโ Resources/
โ โโโ ProductResource.php # API resource
โ โโโ ProductCollection.php # API collection
โโโ Models/
โ โโโ Product.php # Enhanced model
โโโ Repositories/
โ โโโ ProductRepository.php # Implementation
โ โโโ Contracts/
โ โโโ ProductRepositoryInterface.php # Interface
โโโ Services/
โโโ ProductService.php # Implementation
โโโ Contracts/
โโโ ProductServiceInterface.php # Interface
๐ Intelligent Relationship Detection
Automatically detects and generates:
- Foreign Key Relationships -
belongsTo
andhasMany
- Pivot Table Relationships -
belongsToMany
- Polymorphic Relationships -
morphTo
,morphOne
,morphMany
- Self-Referencing Relationships - Parent/child hierarchies
๐ Requirements
- PHP: 8.1+
- Laravel: 9.0+ | 10.0+ | 11.0+ | 12.0+
- Database: MySQL, PostgreSQL, or SQLite
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
๐ License
The MIT License (MIT). Please see License File for more information.
๐จโ๐ป Credits
๐ฌ Support & Community
- ๐ Documentation: GitHub Wiki
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- โญ Star us: GitHub Repository
Made with โค๏ธ for the Laravel community
โญ Star us on GitHub โข ๐ Read the Docs โข ๐ Report Issues