Works with the AI Agents you already use

    Laravel 12 Production Audit

    by Alir

    2

    It is designed to help Laravel developers, freelancers, agencies, students, and SaaS developers review an application before deployment.

    $5.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Laravel 12 Production Audit

    Laravel 12 Production Audit

    Example session with this skill installed

    I'm getting a 'Target class [App\Http\Controllers\OrderController] does not exist' error when I try to visit /orders. I've checked the file and it is definitely in the folder.

    • Read your context and instructions
    • Compiled the laravel 12 production

    I have analyzed your routing configuration and the controller file structure. The error occurs because of a namespace mismatch between your route declaration and the file's actual location.

    🐛 Bug Found

    Severity:
    High

    Problem:
    The application cannot resolve the OrderController when the /orders route is accessed.

    Root Cause:
    The controller file is located in app/Http/Controllers/OrderController.php, but the namespace inside the file is incorrectly set to namespace App\Controllers; instead of namespace App\Http\Controllers;.

    Affected File:
    app/Http/Controllers/OrderController.php

    🔧 Fix

    Open app/Http/Controllers/OrderController.php and update the namespace on line 3:

    <?php
    
    namespace App\Http\Controllers;
    
    use App\Http\Controllers\Controller;
    use Illuminate\Http\Request;
    
    class OrderController extends Controller
    {
        // ... rest of the code
    }
    

    🧪 Test

    1. Open your browser and navigate to /orders.
    2. Expected result: The page loads the index view without the "Target class does not exist" error.

    💡 Why This Happened

    Laravel's autoloader relies on PSR-4 standards. If the namespace defined inside the PHP file does not match the actual folder structure, the RouteServiceProvider cannot locate the class, even if the file exists on the disk.

    Next steps

    • Run composer dump-autoload to ensure the class map is refreshed.
    • Verify your web.php uses the full class string or a proper use statement for the controller.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Laravel 12 Production Audit

    Laravel 12 Production Audit is a professional AI Skill designed to review Laravel applications before deployment.

    It performs a structured production-readiness audit across security, performance, database usage, authentication, authorization, validation, configuration, APIs, file uploads, queues, caching, logging, dependencies, frontend assets, and deployment configuration.

    Instead of simply listing random code problems, the Skill prioritizes findings by severity and explains:

    • What is wrong
    • Where the problem is
    • Why it matters
    • How to fix it
    • How to verify the fix

    Audit areas

    • Production configuration
    • Security review
    • Authentication
    • Authorization
    • Routes
    • Controllers
    • Models & Eloquent
    • Database & migrations
    • N+1 query detection
    • Performance review
    • Validation
    • Blade & frontend
    • API security
    • File uploads
    • Queues & jobs
    • Caching
    • Logging & error handling
    • Composer dependencies
    • Vite/frontend configuration
    • Deployment readiness

    Severity levels

    Critical

    High

    Medium

    Low

    Info

    The final report includes a production-readiness summary, must-fix issues, recommended improvements, and a practical deployment checklist.

    Important

    This Skill uses evidence from the project being inspected. It does not invent vulnerabilities, files, routes, or test results.

    It is designed to help Laravel developers, freelancers, agencies, students, and SaaS developers review an application before deployment.

    Compatible with Laravel projects using common Laravel development workflows.

    What it does

    • Analyzes exact error messages to isolate the root cause across the Laravel stack.
    • Inspects routing, controllers, models, and migrations to ensure architectural consistency.
    • Identifies common Laravel pitfalls like mass assignment errors, 419 Page Expired (CSRF), and BindingResolutionExceptions.
    • Provides a severity assessment (Critical to Low) to help prioritize tech debt and hotfixes.
    • Generates precise code fixes with step-by-step verification instructions.

    Frameworks & tools

    PHP, Laravel, Eloquent ORM, Blade, Vite, Composer, and Artisan.

    Why this beats prompting it yourself

    Generic LLMs often hallucinate methods or suggest outdated Laravel 5 syntax. This skill follows a strict inspection workflow (Understand, Inspect, Diagnose, Fix) that forces the agent to verify file existence and class relationships before proposing a change, preventing "blind fixes" that break other components.

    Use cases

    • Fixing broken authentication flows or policy-based authorization failures.
    • Debugging complex Eloquent relationship queries and N+1 performance issues.
    • Resolving Vite manifest errors and asset compilation problems in the frontend.
    • Tracing 404/405 routing errors to specific middleware or method mismatches.

    Known limitations

    Requires access to project files to be effective. Cannot access external databases to verify live production data.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    Permissions

    No special permissions declared or detected

    Listed2 months ago

    What's inside

    Creator

    Alir

    Alir

    3 skills on Agensi

    Frequently Asked Questions

    The skill is optimized for modern Laravel versions (6.x through 11.x) and supports core ecosystem tools like Eloquent ORM, Blade, Vite, and Artisan. While it can assist with legacy versions, its primary logic is built around current best practices and syntax.

    Unlike generic AI, this skill uses a structured 'Understand-Inspect-Diagnose-Fix' workflow that prevents it from suggesting deprecated methods. It is specifically tuned to recognize Laravel-specific architectural patterns, reducing the risk of 'blind fixes' that might break your middleware or routing.

    To provide accurate root-cause analysis, the agent requires access to relevant project files such as your routes, controllers, and models. Please note that it cannot connect to live production databases or external hosting environments for security reasons.

    Yes, the skill is highly effective at diagnosing Eloquent-specific issues, including N+1 query problems, mass assignment errors, and complex relationship mismatches (hasMany, belongsToMany, etc.). It analyzes your models and migrations to ensure your queries align with your database schema.

    This skill is a software asset that integrates with your AI agent; it does not include a standalone Laravel license or hosting. You receive the specialized debugging logic, diagnostic workflows, and periodic updates to support new Laravel releases.

    The Laravel Bug Finder handles common frontend-to-backend integration issues, specifically identifying Vite manifest errors, CSRF token mismatches (419 errors), and Blade directive syntax failures that often disrupt the user experience.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.