search_attributes
Find Laravel PHP 8 attributes by category, query, or target. Returns attribute names, namespaces, targets, and arguments.
Instructions
Search for available PHP 8 attributes in Laravel. Returns attribute suggestions with descriptions, namespaces, targets (class/method/property/parameter), and expected arguments.
Use this before adding attributes to files or methods to find the correct attribute name and syntax.
Three modes of operation:
List categories (no params): Returns all available attribute categories
Call with no arguments to discover categories like "eloquent", "queue", "routing"
List category attributes (category only): Returns all attributes in a category
Example: category="eloquent" → returns Fillable, Hidden, ObservedBy, etc.
Search by query (query provided): Searches attribute names
Example: query="fill" → finds Fillable attribute
Can combine with category to search within a specific category
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search term to match against attribute names (e.g., "fillable", "middleware", "tries"). Optional - omit to list categories or all attributes in a category. | |
| category | No | Filter to a specific category (e.g., "eloquent", "queue", "routing", "console", "container", "request", "testing", "resource", "factory"). When provided without query, returns all attributes in that category. | |
| target | No | Filter attributes by where they can be applied. Default: returns all. |