Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Easy Dev Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Quick Start Guide

Get up and running with Laravel Easy Dev v2 in under 5 minutes!

🚀 Installation

1. Install the Package

composer require anas/easy-dev

2. Verify Installation

php artisan easy-dev:help

You should see a beautiful help interface!

⚡ Your First CRUD

1. Create a Model

php artisan make:model Product -m

2. Set Up Migration

// database/migrations/xxxx_create_products_table.php
public function up()
{
    Schema::create('products', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->text('description')->nullable();
        $table->decimal('price', 8, 2);
        $table->integer('stock')->default(0);
        $table->foreignId('category_id')->constrained();
        $table->boolean('is_active')->default(true);
        $table->timestamps();
    });
}

3. Run Migration

php artisan migrate

4. Generate Complete CRUD

php artisan easy-dev:make Product --interactive

Follow the interactive prompts to configure your CRUD generation.

5. Auto-Detect Relationships

php artisan easy-dev:sync-relations --all

🎯 What You Get

After running the commands above, you'll have:

  • ProductController with all CRUD methods
  • StoreProductRequest and UpdateProductRequest for validation
  • ProductRepository and ProductRepositoryInterface (if selected)
  • ProductService and ProductServiceInterface (if selected)
  • ProductResource and ProductCollection for API responses
  • Web and API routes automatically registered
  • Feature and Unit tests for your controller
  • Model relationships automatically detected and added

🎮 Interactive Mode

For a guided experience, use interactive mode:

php artisan easy-dev:make Product --interactive

This will walk you through:

  1. Selecting generation options
  2. Configuring Repository and Service patterns
  3. Setting up API endpoints
  4. Customizing validation rules
  5. Reviewing generated files

🔄 Next Steps

  1. Customize Validation: Edit the generated Form Request classes
  2. Add Business Logic: Implement your business rules in Service classes
  3. Customize Views: Create Blade templates for your web routes
  4. Test Your API: Use the generated API endpoints
  5. Add More Models: Repeat the process for other entities

📚 Common Commands

# Generate with Repository pattern
php artisan easy-dev:make Product --with-repository

# Generate with Service layer
php artisan easy-dev:make Product --with-service

# Generate API-only CRUD
php artisan easy-dev:make Product --api-only

# Generate web-only CRUD
php artisan easy-dev:make Product --web-only

# Add a specific relationship
php artisan easy-dev:add-relation Post belongsTo User

# Generate repository for existing model
php artisan easy-dev:repository Product

🎨 Beautiful UI

Laravel Easy Dev v2 features a beautiful command-line interface with:

  • 🌈 Colorful output
  • 📊 Progress bars
  • ✨ Interactive prompts
  • 📋 Summary reports

Try the demo:

php artisan easy-dev:demo-ui

🛟 Need Help?

Happy Coding! 🚀

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle