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.
Get up and running with Laravel Easy Dev v2 in under 5 minutes!
composer require anas/easy-dev
php artisan easy-dev:help
You should see a beautiful help interface!
php artisan make:model Product -m
// 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();
});
}
php artisan migrate
php artisan easy-dev:make Product --interactive
Follow the interactive prompts to configure your CRUD generation.
php artisan easy-dev:sync-relations --all
After running the commands above, you'll have:
For a guided experience, use interactive mode:
php artisan easy-dev:make Product --interactive
This will walk you through:
# 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
Laravel Easy Dev v2 features a beautiful command-line interface with:
Try the demo:
php artisan easy-dev:demo-ui
php artisan easy-dev:help for detailed command informationHappy Coding! 🚀
How can I help you explore Laravel packages today?