- Home
- Skills
- APIs & Backend
- Laravel 12 Production Audit
Works with the AI Agents you already use
Laravel 12 Production Audit
by Alir
It is designed to help Laravel developers, freelancers, agencies, students, and SaaS developers review an application before deployment.
$5.99
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
- Open your browser and navigate to
/orders. - 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-autoloadto ensure the class map is refreshed. - Verify your
web.phpuses 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
Alir
3 skills on Agensi
Frequently Asked Questions
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.