Elyra
Elyra The coding agent Elyra Conductor Local project conductor Elyra SQL Anywhere Replication-ready SQL engine
Development
Development
Elyra

Laravel

Deep Laravel project understanding — model relationships, route mapping, architecture analysis.

@elyracode/laravel gives the agent x-ray vision into your Laravel project. Instead of reading model and controller files one at a time and guessing at conventions, the agent sees your entire data model, routing layer, and architecture before writing a single line of code.

The result: fewer wrong guesses, fewer wasted tokens, and code that matches how your project is built.

Install

elyra install npm:@elyracode/laravel

The extension activates automatically when the project contains a composer.json with laravel/framework. Tools register only inside Laravel projects, so non-Laravel workspaces stay free of clutter.

Tools

Tool Description
laravel_models Map all Eloquent models with relationships, casts, scopes, traits, and fillable fields
laravel_routes List routes with middleware, controllers, form requests, and resources
laravel_analyze Analyze project architecture: stack, patterns, auth, queue, conventions
laravel_docs Semantic search of Laravel ecosystem documentation (Laravel, Livewire, Inertia, Filament, Pest, Tailwind, etc.)
laravel_logs Read recent log entries from the application log with count and level filtering
laravel_last_error Get the most recent error or exception from the Laravel log

Examples

> Show me all models and their relationships
> Which routes use the admin middleware?
> Add a hasMany from User to Order, follow the existing convention
> What auth, queue, and broadcast drivers does this app use?

Models

laravel_models parses every model in app/Models (and other configured paths). It reports relationships (hasMany, belongsTo, morphTo, …), casts, scopes, accessors and mutators, traits, fillable and guarded attributes, and table overrides — in one structured view.

Routes

laravel_routes walks the route definitions and resolves each entry: HTTP verb, URI, name, controller and method, middleware stack, form request validation, and any returned Eloquent API resource.

Architecture analysis

laravel_analyze summarizes the project: PHP and Laravel versions, stack (TALL, VILT, RILT, Filament, …), authentication setup, queue and broadcast drivers, database backends, testing framework, and the conventions used across the codebase.

Documentation search

laravel_docs searches 17,000+ Laravel ecosystem documentation entries using semantic search, powered by Laravel Boost's hosted API. Results are version-specific to the project's installed packages. Requires internet access; no authentication needed.

Log analysis

Use laravel_last_error when something has broken — it's the quickest way to see what went wrong. Use laravel_logs for broader log analysis, filtering entries by level (e.g. error, warning, info).

Included skill

The elyra-laravel skill teaches the agent:

  • Laravel directory structure and naming conventions
  • Eloquent patterns — relationships, scopes, accessors, mutators, casts
  • Common architectures — service classes, actions, repositories, form requests, API resources
  • Artisan workflows and code generation best practices
  • Migration, factory, and seeder conventions
  • How to combine laravel_models with @elyracode/db-tools for model-vs-schema analysis (drift detection, missing indexes, type mismatches)