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

Eloquent Schema Laravel Package

visualbuilder/eloquent-schema

Adds MCP tools for Laravel Boost to introspect Eloquent models. Automatically discovers app and vendor models, extracts columns, relationships, and accessors, and serves complete model schemas with caching—helping AI assistants and dev tools generate accurate queries and code faster.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • AI/DevTool Integration: Enables seamless schema exposure for AI assistants (e.g., Copilot, custom LLMs) or internal tools (e.g., query builders, admin panels), reducing token usage and improving accuracy by eliminating manual schema documentation.
  • Developer Productivity: Accelerates development of CLI tools, migrations, or testing frameworks by providing structured schema introspection via MCP tools or programmatic APIs.
  • Build vs. Buy: Avoids reinventing schema discovery for internal tools (e.g., custom MCP servers, IDE plugins) while supporting vendor packages (Spatie, MediaLibrary) out-of-the-box.
  • Vendor Package Standardization: Unifies schema access across third-party Eloquent models, critical for multi-package apps (e.g., SaaS platforms with permissions/media libraries).
  • Data Governance: Facilitates safe refactoring by surfacing relationships/accessors before migrations, reducing risk of broken queries or orphaned data.

When to Consider This Package

Adopt if:

  • Your Laravel app has >50 Eloquent models or complex relationships (e.g., e-commerce, SaaS with nested hierarchies).
  • You’re building AI-powered tools (query generators, documentation bots) that need dynamic schema access without manual updates.
  • Your team uses Laravel MCP (or plans to) for internal automation (e.g., custom AI servers, CLI tools).
  • You rely on vendor packages with Eloquent models (e.g., Spatie Permission, MediaLibrary) and want unified schema discovery.
  • You need programmatic schema introspection for migrations, testing, or third-party integrations (e.g., GraphQL, APIs).

Look elsewhere if:

  • Your app is small-scale (<20 models) with simple schemas (manual documentation or Schema::getColumnListing() may suffice).
  • You’re not using Laravel 11/12 or PHP 8.2+ (hard dependency).
  • Your primary need is raw database introspection (e.g., DB::select()) without Eloquent context.
  • You’re already using a dedicated ORM tool (e.g., Doctrine) with built-in schema features.
  • Your team lacks MCP/Laravel Boost infrastructure (though the package offers programmatic APIs as an alternative).

How to Pitch It (Stakeholders)

For Executives:

*"This package automates the discovery and exposure of our application’s data structure—a manual process that currently slows down development, increases onboarding time, and introduces risks during migrations. By integrating with AI tools (e.g., Copilot) and internal automation, we can:

  • Reduce developer onboarding time by 30%+ via self-documenting schemas.
  • Cut costs on custom tooling for query generation, migrations, or admin panels.
  • Future-proof our tech stack for AI-driven development, aligning with trends like GitHub’s Copilot for databases. The low-risk, MIT-licensed package requires minimal setup and delivers immediate ROI for teams managing complex data models. First adopters: Data team (migrations), AI/automation team (tooling), and new hire onboarding."*

For Engineering Leaders:

*"This solves a critical pain point for teams building tools that interact with Eloquent models. Key advantages:

  • MCP Tools: Expose list-models, model-schema, and model-fields to AI assistants or custom CLI tools without writing boilerplate.
  • Vendor Support: Automatically include schemas from packages like Spatie/Permission, eliminating manual mapping.
  • Performance: Built-in caching (configurable TTL) ensures fast schema queries even for large apps.
  • Flexibility: Works with or without Laravel Boost—use MCP tools or tap into the underlying ModelDiscoveryService programmatically. Example: Our new ‘Query Builder’ feature could leverage model-fields to auto-suggest columns/relationships, cutting dev time by 50%."*

For Developers:

*"If you’ve ever:

  • Manually documented your app’s schema for new hires,
  • Reverse-engineered a vendor package’s Eloquent models, or
  • Built a CLI tool that needed to ‘know’ your schema dynamically— this package is your shortcut. It’s like php artisan schema:dump but smart: it understands relationships, accessors, and even enums. Just install, cache, and query via MCP or code. Pro tip: Use php artisan eloquent-schema:cache after model changes to keep your AI tools in sync—no more stale schemas!"*
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity