laravel-13-facades
Provides accurate guidance on Laravel 13 facades, testing patterns, and architectural best practices.
Install
mkdir -p .claude/skills/laravel-13-facades && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15251" && unzip -o skill.zip -d .claude/skills/laravel-13-facades && rm skill.zipInstalls to .claude/skills/laravel-13-facades
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when: working with Laravel 13 facades, Illuminate\Support\Facades namespace, facades vs dependency injection, facades vs helper functions, Facade base class behavior, getFacadeAccessor(), facade testing with shouldReceive(), real-time facades, Facades\ prefixes, and Laravel 13 facade code reviews. Requires Context7 /websites/laravel_13_x docs before adding details.Key capabilities
- →Create Laravel 13 facade concepts
- →Review Laravel 13 facade usage
- →Explain Laravel 13 facade concepts
- →Implement real-time facades
- →Write facade-specific testing patterns using `shouldReceive()`
How it works
This skill creates, reviews, or explains Laravel 13 facade concepts, real-time facades, and facade-specific testing patterns. It verifies all responses against current Laravel 13.x documentation and uses documented snippets.
Inputs & outputs
When to use laravel-13-facades
- →Implement a new facade
- →Write facade unit tests
- →Review facade usage
- →Compare DI vs Facades
About this skill
Laravel 13 Facades
Purpose
Use this skill to create, review, or explain Laravel 13 facade concepts, real-time facades, and facade-specific testing patterns using only details confirmed in the current Laravel 13.x documentation.
Source Rule
- Before giving final code, commands, architecture guidance, or review findings, query the current Laravel 13.x documentation for the exact facade topic.
- Do not add facade behavior, imports, namespace rules, base-class internals, real-time facade patterns, testing helpers, helper comparisons, or facade root mappings unless they appear in the current documentation result or the reference files below.
- If a requested detail is not confirmed by the current documentation result, run a narrower lookup or explicitly say the current Laravel 13 documentation context does not confirm it.
- Keep examples close to documented snippets and preserve documented namespace segments, facade names, binding names, helper names, class names, and testing methods.
- Do not infer behavior from older Laravel versions, framework source, blog posts, package docs, or general Laravel memory.
- Use feature-specific split skills for the underlying APIs behind facades such as
Cache,Storage,Log,Http,Auth,URL,Route,Schema,DB, orMail. Use this slice when the task is specifically about facades as an abstraction.
Reference Map
- Facade purpose, namespace, facade vs dependency injection, facade vs helper functions,
shouldReceive(), and how facade resolution works: facade-concepts.md - Real-time facades,
Facades\imports, and real-time facade testing patterns: real-time-facades.md - Facade class reference structure and representative facade-to-root mappings from the Laravel 13 reference table: facade-class-reference.md
Workflow
- Identify the exact surface: facade import, facade namespace, facade vs dependency injection, facade vs helper, facade testing, facade root resolution,
getFacadeAccessor(), real-time facade,Facades\import, or facade class reference lookup. - Query the current Laravel 13.x documentation for that exact topic.
- Load the relevant reference file from the map above.
- Use only documented imports, helper names, methods, class names, binding names, and examples.
- Route feature-specific API questions to the owning split skill when the real task is about cache, auth, logging, HTTP client, URL generation, database access, filesystem storage, queues, mail, notifications, or validation rather than facade behavior itself.
- For reviews, flag only documented mismatches: wrong facade namespace, unsupported facade claim, misuse of real-time facade imports, unconfirmed facade testing pattern, unconfirmed helper equivalence statement, or behavior not confirmed by the current lookup.
Confirmed Core Patterns
- Laravel facades provide a static-looking interface to objects available in the service container.
- Laravel facades are in the
Illuminate\Support\Facadesnamespace. - The docs show facades such as
CacheandRouteimported fromIlluminate\Support\Facades. - The docs describe facades as static proxies to underlying service-container classes and state that they remain more testable and flexible than traditional static methods.
- The docs compare facades with dependency injection and show facade testing with
Cache::shouldReceive(...). - The docs compare facades with helper functions and state there is no practical difference between a documented helper call and its corresponding facade call.
- The docs warn about class scope creep when many facades are used in a single class.
- The docs show that facades extend
Illuminate\Support\Facades\Facadeand use__callStatic()to defer calls to the container-resolved object. - The docs show
getFacadeAccessor()returning the binding name used to resolve the underlying service from the container. - The docs show real-time facades by prefixing an imported class or interface with
Facades\. - The docs show real-time facades can be tested with
shouldReceive(...). - The docs include a facade class reference table listing facade name, underlying class, and service-container binding key where applicable.
Completion Check
- A fresh Laravel 13 documentation lookup was performed for the exact facade topic.
- Every namespace, helper comparison, testing method, base-class statement, real-time facade rule, and facade root mapping is traceable to the lookup or references.
- Feature-specific facade APIs remain delegated to their owning split skills.
- Unconfirmed facade behavior is omitted or explicitly marked as not confirmed by the current Laravel 13 documentation context.
When not to use it
- →When inferring behavior from older Laravel versions
- →When inferring behavior from framework source or blog posts
- →When the task is about feature-specific APIs behind facades like `Cache` or `Auth`
Limitations
- →Do not add facade behavior unless they appear in the current documentation result
- →Do not infer behavior from older Laravel versions
- →Route feature-specific API questions to the owning split skill
How it compares
This skill ensures all information about Laravel 13 facades is directly sourced and verified against official documentation, providing accurate and current guidance unlike relying on general knowledge or older versions.
Compared to similar skills
laravel-13-facades side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| laravel-13-facades (this skill) | 0 | 3mo | No flags | Intermediate |
| laravel-pdf | 11 | 3mo | Review | Beginner |
| php-testing | 8 | 1mo | No flags | Intermediate |
| laravel-specialist | 12 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by kooda-ai
View all by kooda-ai →You might also like
laravel-pdf
spatie
Generate PDFs from Blade views or HTML using spatie/laravel-pdf. Covers creating, formatting, saving, downloading, and testing PDFs with the Browsershot, Cloudflare, or DOMPDF driver.
php-testing
HoangNguyen0403
Unit and integration testing standards for PHP applications.
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.
pennant-development
laravel
Manages feature flags with Laravel Pennant. Activates when creating, checking, or toggling feature flags; showing or hiding features conditionally; implementing A/B testing; working with @feature directive; or when the user mentions feature flags, feature toggles, Pennant, conditional features, rollouts, or gradually enabling features.
developing-shopper
shopperlabs
Provides coding standards and patterns for Laravel Shopper development. Use when creating or modifying Models, Actions, Enums, Livewire components, migrations, or tests in any Shopper package.
developing-with-turbo-streams
hotwired-laravel
Basics of developing with Turbo Streams in web applications. Activate when working on projects that utilize Turbo Streams for enhancing user experience through real-time updates, dynamic content changes, and partial page updates without full reloads.