anas/easy-dev
Interactive Laravel code generator for complete CRUD with repository/service patterns. Auto-detects model relationships and scaffolds policies, DTOs, observers, filters, enums, API resources, routes, and more, with dry-run mode and customizable stubs.
Your Laravel Easy Dev package now features a completely revamped user interface with modern command-line aesthetics and enhanced user experience. Here's a comprehensive overview of all the UI improvements implemented:
easy-dev:make)easy-dev:help)easy-dev:demo)โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Laravel Easy Dev CRUD Generator ๐ โ
โ Generate complete CRUD with Repository & Service patterns โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
3/10 [โโโโโโโโโโโโโโโโโโโโ] 30% ๐๏ธ Building Models
๐๏ธ Choose your architecture pattern:
[0] Repository Pattern
[1] Service Layer
[2] Both
[3] Neither
$ php artisan make:crud Product
Creating CRUD for: Product
โ
Model and migration created.
๐ Found fields: name, price, description
โ
Controller created.
๐ Done! Your CRUD for 'Product' is ready.
$ php artisan easy-dev:make Product
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Laravel Easy Dev CRUD Generator ๐ โ
โ Generate complete CRUD with Repository & Service patterns โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ฏ Welcome to Interactive CRUD Generation!
๐ What is the name of your model? Product
๐๏ธ Let's configure your CRUD architecture:
๐๏ธ Repository Pattern:
[0] No
[1] Yes, with interface
[2] Yes, without interface
> 1
๐ง Service Layer:
[0] No
[1] Yes, with interface
[2] Yes, without interface
> 1
๐ Generation Summary:
โโโโโโโโโโโโโโโโโโโโโ
๐ Model: Product
๐๏ธ Repository: Yes, with interface
๐ง Service: Yes, with interface
๐ฎ Controller: Both API & Web
๐ Proceed with generation? [yes]
๐ฌ Starting CRUD generation for Product
10/10 [โโโโโโโโโโโโโโโโโโโโโโโโ] 100% โจ Finalizing
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ CRUD Generation Completed Successfully! ๐ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ฆ Generated files for Product
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Core Files:
โ app/Models/Product.php
โ app/Http/Requests/StoreProductRequest.php
โ app/Http/Requests/UpdateProductRequest.php
Repository Pattern:
โ app/Repositories/ProductRepository.php
โ app/Repositories/Contracts/ProductRepositoryInterface.php
Service Layer:
โ app/Services/ProductService.php
โ app/Services/Contracts/ProductServiceInterface.php
Controllers:
โ app/Http/Controllers/ProductController.php
โ app/Http/Controllers/Api/ProductController.php
๐ Next Steps:
โโโโโโโโโโโโโ
๐ Run migrations: php artisan migrate
๐ฑ Create factory & seeder: php artisan make:factory ProductFactory
๐งช Create tests: php artisan make:test ProductTest
๐ Check API routes: php artisan route:list --path=api
๐ Check web routes: php artisan route:list --path=web
๐ก Tip: Use php artisan easy-dev:help for more commands!
// config/easy-dev.php
return [
'ui' => [
'show_progress_bar' => true,
'show_banner' => true,
'use_icons' => true,
'colored_output' => true,
'interactive_mode_default' => false,
],
'defaults' => [
'with_repository' => false,
'with_service' => false,
'with_interface' => true,
],
// ... more configuration options
];
# Interactive mode
php artisan easy-dev:make
# Direct generation with options
php artisan easy-dev:make Product --with-repository --with-service
# API-only development
php artisan easy-dev:crud User --api-only
# Help with examples
php artisan easy-dev:help --examples
# UI demonstration
php artisan easy-dev:demo
The enhanced UI transforms Laravel Easy Dev from a simple command-line tool into a comprehensive development assistant. The combination of beautiful interfaces, interactive guidance, and comprehensive documentation creates a premium developer experience that rivals modern GUI tools while maintaining the efficiency of command-line operations.
The package now offers:
This enhanced UI positions Laravel Easy Dev as a leading package in the Laravel ecosystem, providing both power and usability for developers at all levels.
How can I help you explore Laravel packages today?