[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NAPKCNFH5PGEQKZ6WPDX7":3,"skill-same:01M77NAPKCNFH5PGEQKZ6WPDX7":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77NAPKCNFH5PGEQKZ6WPDX7","laravel-query-builder",null,"Build filtered, sorted, and included API endpoints using spatie\u002Flaravel-query-builder. Activates when working with QueryBuilder, AllowedFilter, AllowedSort, AllowedInclude, or when the user mentions query parameters, API filtering, sorting, includes, or spatie\u002Flaravel-query-builder.","w1do\u002Fcontent-backend","w1do","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122446147?v=4","01M77N9PAY1Z1RMN8S3936Q9Y9","W1DO DIGITAL","01M77N9PBRQG10QM0Z8WFRAK25",1,"MIT","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fskills\u002Flaravel-query-builder\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: laravel-query-builder\ndescription: \"Build filtered, sorted, and included API endpoints using spatie\u002Flaravel-query-builder. Activates when working with QueryBuilder, AllowedFilter, AllowedSort, AllowedInclude, or when the user mentions query parameters, API filtering, sorting, includes, or spatie\u002Flaravel-query-builder.\"\nlicense: MIT\nmetadata:\n  author: spatie\n---\n\n# Laravel Query Builder\n\n## When to Apply\n\nActivate this skill when:\n\n- Building API endpoints that accept filter, sort, include, or fields query parameters\n- Configuring allowed filters, sorts, includes, or field selections\n- Creating custom filter, sort, or include classes\n- Troubleshooting query builder exceptions or unexpected query results\n\n## Basic Usage\n\n```php\nuse Spatie\\QueryBuilder\\QueryBuilder;\nuse Spatie\\QueryBuilder\\AllowedFilter;\nuse Spatie\\QueryBuilder\\AllowedInclude;\nuse Spatie\\QueryBuilder\\AllowedSort;\n\n\u002F\u002F GET \u002Fusers?filter[name]=John&sort=-created_at&include=posts\n$users = QueryBuilder::for(User::class)\n    ->allowedFilters('name', 'email')\n    ->allowedSorts('name', 'created_at')\n    ->allowedIncludes('posts', 'permissions')\n    ->allowedFields('id', 'name', 'email')\n    ->get();\n```\n\n## Filtering\n\n### Filter Types\n\n```php\nuse Spatie\\QueryBuilder\\AllowedFilter;\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(\n        AllowedFilter::partial('name'),           \u002F\u002F WHERE name LIKE '%value%' (default)\n        AllowedFilter::exact('email'),             \u002F\u002F WHERE email = 'value'\n        AllowedFilter::beginsWith('name'),         \u002F\u002F WHERE name LIKE 'value%'\n        AllowedFilter::endsWith('name'),           \u002F\u002F WHERE name LIKE '%value'\n        AllowedFilter::scope('active'),            \u002F\u002F Calls scopeActive()\n        AllowedFilter::callback('search', fn ($query, $value) => ...),\n        AllowedFilter::exact('role')->default('user'),  \u002F\u002F Default filter value\n        AllowedFilter::exact('status')->nullable(),     \u002F\u002F Allows null values\n        AllowedFilter::exact('role')->ignore('admin'),  \u002F\u002F Ignores specific values\n        AllowedFilter::belongsTo('author'),             \u002F\u002F Filter by BelongsTo relationship\n        AllowedFilter::trashed(),                       \u002F\u002F Filter soft deletes (with, only, without)\n    );\n```\n\n### Operator Filters\n\n```php\nuse Spatie\\QueryBuilder\\AllowedFilter;\nuse Spatie\\QueryBuilder\\Enums\\FilterOperator;\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(\n        AllowedFilter::operator('salary', FilterOperator::GreaterThan),\n        AllowedFilter::operator('age', FilterOperator::LessThanOrEqual),\n        AllowedFilter::operator('salary', FilterOperator::Dynamic), \u002F\u002F Operator from request\n    );\n\n\u002F\u002F GET \u002Fusers?filter[salary]=gt:50000 (with Dynamic operator)\n```\n\n### Relation Filters\n\nFilter by related model properties using dot notation:\n\n```php\n\u002F\u002F GET \u002Fusers?filter[posts.title]=Laravel\nQueryBuilder::for(User::class)\n    ->allowedFilters(AllowedFilter::partial('posts.title'));\n```\n\n### Custom Column Names\n\n```php\n\u002F\u002F GET \u002Fusers?filter[email]=john\n\u002F\u002F Queries the 'user_email' column\nAllowedFilter::exact('email', 'user_email');\n```\n\n### Custom Filters\n\nImplement `Spatie\\QueryBuilder\\Filters\\Filter`:\n\n```php\nuse Spatie\\QueryBuilder\\Filters\\Filter;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nclass FiltersUserPermission implements Filter\n{\n    public function __invoke(Builder $query, mixed $value, string $property): void\n    {\n        $query->whereHas('permissions', fn ($q) => $q->where('name', $value));\n    }\n}\n\nAllowedFilter::custom('permission', new FiltersUserPermission());\n```\n\n## Sorting\n\n```php\nuse Spatie\\QueryBuilder\\AllowedSort;\nuse Spatie\\QueryBuilder\\Enums\\SortDirection;\n\nQueryBuilder::for(User::class)\n    ->allowedSorts(\n        'name',\n        'created_at',\n        AllowedSort::field('order', 'sort_order'),   \u002F\u002F Alias: ?sort=order queries sort_order\n        AllowedSort::custom('popular', new SortMostPopular()),\n        AllowedSort::callback('random', fn ($query, $descending) => $query->inRandomOrder()),\n    )\n    ->defaultSort('name')\n    ->defaultSorts('name', AllowedSort::field('date', 'created_at')->defaultDirection(SortDirection::Descending));\n\n\u002F\u002F GET \u002Fusers?sort=-created_at,name (descending created_at, ascending name)\n```\n\n### Custom Sorts\n\nImplement `Spatie\\QueryBuilder\\Sorts\\Sort`:\n\n```php\nuse Spatie\\QueryBuilder\\Sorts\\Sort;\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Spatie\\QueryBuilder\\Enums\\SortDirection;\n\nclass SortMostPopular implements Sort\n{\n    public function __invoke(Builder $query, SortDirection $direction, string $property): void\n    {\n        $query->withCount('followers')->orderBy('followers_count', $direction->value);\n    }\n}\n```\n\n## Including Relationships\n\n```php\nuse Spatie\\QueryBuilder\\AllowedInclude;\n\nQueryBuilder::for(User::class)\n    ->allowedIncludes(\n        'posts',                                     \u002F\u002F Eager loads posts (also allows postsCount and postsExists)\n        'posts.comments',                            \u002F\u002F Nested eager loading\n        AllowedInclude::count('commentsCount'),      \u002F\u002F Only withCount, no full relation\n        AllowedInclude::exists('postsExists'),       \u002F\u002F Only withExists\n        AllowedInclude::relationship('profile', 'userProfile'), \u002F\u002F Alias\n        AllowedInclude::callback('latestPost', fn ($query) => $query->latestOfMany()),\n    );\n\n\u002F\u002F GET \u002Fusers?include=posts,commentsCount,postsExists\n```\n\n### Aggregate Includes\n\n```php\nAllowedInclude::min('postsViewsMin', 'posts', 'views');   \u002F\u002F withMin('posts', 'views')\nAllowedInclude::max('postsViewsMax', 'posts', 'views');   \u002F\u002F withMax('posts', 'views')\nAllowedInclude::sum('postsViewsSum', 'posts', 'views');   \u002F\u002F withSum('posts', 'views')\nAllowedInclude::avg('postsViewsAvg', 'posts', 'views');   \u002F\u002F withAvg('posts', 'views')\n\n\u002F\u002F GET \u002Fusers?include=postsViewsSum,postsViewsAvg\n```\n\n### Custom Includes\n\nImplement `Spatie\\QueryBuilder\\Includes\\IncludeInterface`:\n\n```php\nuse Spatie\\QueryBuilder\\Includes\\IncludeInterface;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nclass IncludeLatestPost implements IncludeInterface\n{\n    public function __invoke(Builder $query, string $include): void\n    {\n        $query->with(['latestPost' => fn ($q) => $q->latest()]);\n    }\n}\n\nAllowedInclude::custom('latestPost', new IncludeLatestPost());\n```\n\n## Field Selection\n\n```php\n\u002F\u002F GET \u002Fusers?fields[users]=id,name&fields[posts]=id,title&include=posts\nQueryBuilder::for(User::class)\n    ->allowedFields('id', 'name', 'email')\n    ->allowedIncludes('posts')\n    ->get();\n```\n\n## Configuration\n\nPublished to `config\u002Fquery-builder.php`:\n\n```php\nreturn [\n    \u002F\u002F Custom query parameter names\n    'parameters' => [\n        'include' => 'include',\n        'filter' => 'filter',\n        'sort' => 'sort',\n        'fields' => 'fields',\n    ],\n\n    \u002F\u002F Array value delimiter\n    'delimiter' => ',',\n\n    \u002F\u002F Include suffixes (for count, exists, and aggregate includes)\n    'suffixes' => [\n        'count' => 'Count',\n        'exists' => 'Exists',\n        'min' => 'Min',\n        'max' => 'Max',\n        'sum' => 'Sum',\n        'avg' => 'Avg',\n    ],\n\n    \u002F\u002F Disable exception throwing for invalid queries\n    'disable_invalid_filter_query_exception' => false,\n    'disable_invalid_sort_query_exception' => false,\n    'disable_invalid_include_query_exception' => false,\n];\n```\n\n## Wildcard Allow-All\n\nAllow any requested filter, sort, or include without explicit listing. Restricted to `local` and `testing` environments:\n\n```php\nQueryBuilder::for(User::class)\n    ->allowedFilters('*')\n    ->allowedSorts('*')\n    ->allowedIncludes('*');\n```\n\n## Starting from Existing Queries\n\n```php\n\u002F\u002F From an Eloquent query\nQueryBuilder::for(User::where('active', true))\n    ->allowedFilters('name')\n    ->get();\n\n\u002F\u002F From a relation\nQueryBuilder::for($team->users())\n    ->allowedFilters('name')\n    ->get();\n```\n\n## Common Patterns\n\n### Controller with Full Query Builder\n\n```php\nclass UsersController\n{\n    public function index()\n    {\n        $users = QueryBuilder::for(User::class)\n            ->allowedFilters(\n                AllowedFilter::partial('name'),\n                AllowedFilter::exact('email'),\n                AllowedFilter::scope('active'),\n            )\n            ->allowedSorts('name', 'created_at')\n            ->allowedIncludes('posts', 'permissions')\n            ->allowedFields('id', 'name', 'email')\n            ->defaultSort('name')\n            ->paginate();\n\n        return UserResource::collection($users);\n    }\n}\n```\n\n### Dynamic Arrays with Variadic Methods\n\n```php\n$filters = ['name', 'email'];\n$sorts = ['name', 'created_at'];\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(...$filters)\n    ->allowedSorts(...$sorts);\n```\n\n## Common Pitfalls\n\n- **N+1 queries**: Always use `allowedIncludes()` to eager load relationships instead of accessing them in views\u002Fresources without loading\n- **Forgetting to allow**: All filters, sorts, includes, and fields must be explicitly allowed. Unallowed parameters throw exceptions by default\n- **Filter value types**: Filter values come from query strings as strings. Use `AllowedFilter::exact()` for boolean\u002Finteger columns, or handle casting in custom filters\n- **Nested include counts**: Count and exists variants are only auto-generated for top-level includes, not for nested includes like `posts.comments`\n- **Field selection with includes**: When using `allowedFields()` with `allowedIncludes()`, make sure to include the foreign key columns needed for the relationships\n","# Laravel Query Builder\n\n## When to Apply\n\nActivate this skill when:\n\n- Building API endpoints that accept filter, sort, include, or fields query parameters\n- Configuring allowed filters, sorts, includes, or field selections\n- Creating custom filter, sort, or include classes\n- Troubleshooting query builder exceptions or unexpected query results\n\n## Basic Usage\n\n```php\nuse Spatie\\QueryBuilder\\QueryBuilder;\nuse Spatie\\QueryBuilder\\AllowedFilter;\nuse Spatie\\QueryBuilder\\AllowedInclude;\nuse Spatie\\QueryBuilder\\AllowedSort;\n\n\u002F\u002F GET \u002Fusers?filter[name]=John&sort=-created_at&include=posts\n$users = QueryBuilder::for(User::class)\n    ->allowedFilters('name', 'email')\n    ->allowedSorts('name', 'created_at')\n    ->allowedIncludes('posts', 'permissions')\n    ->allowedFields('id', 'name', 'email')\n    ->get();\n```\n\n## Filtering\n\n### Filter Types\n\n```php\nuse Spatie\\QueryBuilder\\AllowedFilter;\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(\n        AllowedFilter::partial('name'),           \u002F\u002F WHERE name LIKE '%value%' (default)\n        AllowedFilter::exact('email'),             \u002F\u002F WHERE email = 'value'\n        AllowedFilter::beginsWith('name'),         \u002F\u002F WHERE name LIKE 'value%'\n        AllowedFilter::endsWith('name'),           \u002F\u002F WHERE name LIKE '%value'\n        AllowedFilter::scope('active'),            \u002F\u002F Calls scopeActive()\n        AllowedFilter::callback('search', fn ($query, $value) => ...),\n        AllowedFilter::exact('role')->default('user'),  \u002F\u002F Default filter value\n        AllowedFilter::exact('status')->nullable(),     \u002F\u002F Allows null values\n        AllowedFilter::exact('role')->ignore('admin'),  \u002F\u002F Ignores specific values\n        AllowedFilter::belongsTo('author'),             \u002F\u002F Filter by BelongsTo relationship\n        AllowedFilter::trashed(),                       \u002F\u002F Filter soft deletes (with, only, without)\n    );\n```\n\n### Operator Filters\n\n```php\nuse Spatie\\QueryBuilder\\AllowedFilter;\nuse Spatie\\QueryBuilder\\Enums\\FilterOperator;\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(\n        AllowedFilter::operator('salary', FilterOperator::GreaterThan),\n        AllowedFilter::operator('age', FilterOperator::LessThanOrEqual),\n        AllowedFilter::operator('salary', FilterOperator::Dynamic), \u002F\u002F Operator from request\n    );\n\n\u002F\u002F GET \u002Fusers?filter[salary]=gt:50000 (with Dynamic operator)\n```\n\n### Relation Filters\n\nFilter by related model properties using dot notation:\n\n```php\n\u002F\u002F GET \u002Fusers?filter[posts.title]=Laravel\nQueryBuilder::for(User::class)\n    ->allowedFilters(AllowedFilter::partial('posts.title'));\n```\n\n### Custom Column Names\n\n```php\n\u002F\u002F GET \u002Fusers?filter[email]=john\n\u002F\u002F Queries the 'user_email' column\nAllowedFilter::exact('email', 'user_email');\n```\n\n### Custom Filters\n\nImplement `Spatie\\QueryBuilder\\Filters\\Filter`:\n\n```php\nuse Spatie\\QueryBuilder\\Filters\\Filter;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nclass FiltersUserPermission implements Filter\n{\n    public function __invoke(Builder $query, mixed $value, string $property): void\n    {\n        $query->whereHas('permissions', fn ($q) => $q->where('name', $value));\n    }\n}\n\nAllowedFilter::custom('permission', new FiltersUserPermission());\n```\n\n## Sorting\n\n```php\nuse Spatie\\QueryBuilder\\AllowedSort;\nuse Spatie\\QueryBuilder\\Enums\\SortDirection;\n\nQueryBuilder::for(User::class)\n    ->allowedSorts(\n        'name',\n        'created_at',\n        AllowedSort::field('order', 'sort_order'),   \u002F\u002F Alias: ?sort=order queries sort_order\n        AllowedSort::custom('popular', new SortMostPopular()),\n        AllowedSort::callback('random', fn ($query, $descending) => $query->inRandomOrder()),\n    )\n    ->defaultSort('name')\n    ->defaultSorts('name', AllowedSort::field('date', 'created_at')->defaultDirection(SortDirection::Descending));\n\n\u002F\u002F GET \u002Fusers?sort=-created_at,name (descending created_at, ascending name)\n```\n\n### Custom Sorts\n\nImplement `Spatie\\QueryBuilder\\Sorts\\Sort`:\n\n```php\nuse Spatie\\QueryBuilder\\Sorts\\Sort;\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Spatie\\QueryBuilder\\Enums\\SortDirection;\n\nclass SortMostPopular implements Sort\n{\n    public function __invoke(Builder $query, SortDirection $direction, string $property): void\n    {\n        $query->withCount('followers')->orderBy('followers_count', $direction->value);\n    }\n}\n```\n\n## Including Relationships\n\n```php\nuse Spatie\\QueryBuilder\\AllowedInclude;\n\nQueryBuilder::for(User::class)\n    ->allowedIncludes(\n        'posts',                                     \u002F\u002F Eager loads posts (also allows postsCount and postsExists)\n        'posts.comments',                            \u002F\u002F Nested eager loading\n        AllowedInclude::count('commentsCount'),      \u002F\u002F Only withCount, no full relation\n        AllowedInclude::exists('postsExists'),       \u002F\u002F Only withExists\n        AllowedInclude::relationship('profile', 'userProfile'), \u002F\u002F Alias\n        AllowedInclude::callback('latestPost', fn ($query) => $query->latestOfMany()),\n    );\n\n\u002F\u002F GET \u002Fusers?include=posts,commentsCount,postsExists\n```\n\n### Aggregate Includes\n\n```php\nAllowedInclude::min('postsViewsMin', 'posts', 'views');   \u002F\u002F withMin('posts', 'views')\nAllowedInclude::max('postsViewsMax', 'posts', 'views');   \u002F\u002F withMax('posts', 'views')\nAllowedInclude::sum('postsViewsSum', 'posts', 'views');   \u002F\u002F withSum('posts', 'views')\nAllowedInclude::avg('postsViewsAvg', 'posts', 'views');   \u002F\u002F withAvg('posts', 'views')\n\n\u002F\u002F GET \u002Fusers?include=postsViewsSum,postsViewsAvg\n```\n\n### Custom Includes\n\nImplement `Spatie\\QueryBuilder\\Includes\\IncludeInterface`:\n\n```php\nuse Spatie\\QueryBuilder\\Includes\\IncludeInterface;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nclass IncludeLatestPost implements IncludeInterface\n{\n    public function __invoke(Builder $query, string $include): void\n    {\n        $query->with(['latestPost' => fn ($q) => $q->latest()]);\n    }\n}\n\nAllowedInclude::custom('latestPost', new IncludeLatestPost());\n```\n\n## Field Selection\n\n```php\n\u002F\u002F GET \u002Fusers?fields[users]=id,name&fields[posts]=id,title&include=posts\nQueryBuilder::for(User::class)\n    ->allowedFields('id', 'name', 'email')\n    ->allowedIncludes('posts')\n    ->get();\n```\n\n## Configuration\n\nPublished to `config\u002Fquery-builder.php`:\n\n```php\nreturn [\n    \u002F\u002F Custom query parameter names\n    'parameters' => [\n        'include' => 'include',\n        'filter' => 'filter',\n        'sort' => 'sort',\n        'fields' => 'fields',\n    ],\n\n    \u002F\u002F Array value delimiter\n    'delimiter' => ',',\n\n    \u002F\u002F Include suffixes (for count, exists, and aggregate includes)\n    'suffixes' => [\n        'count' => 'Count',\n        'exists' => 'Exists',\n        'min' => 'Min',\n        'max' => 'Max',\n        'sum' => 'Sum',\n        'avg' => 'Avg',\n    ],\n\n    \u002F\u002F Disable exception throwing for invalid queries\n    'disable_invalid_filter_query_exception' => false,\n    'disable_invalid_sort_query_exception' => false,\n    'disable_invalid_include_query_exception' => false,\n];\n```\n\n## Wildcard Allow-All\n\nAllow any requested filter, sort, or include without explicit listing. Restricted to `local` and `testing` environments:\n\n```php\nQueryBuilder::for(User::class)\n    ->allowedFilters('*')\n    ->allowedSorts('*')\n    ->allowedIncludes('*');\n```\n\n## Starting from Existing Queries\n\n```php\n\u002F\u002F From an Eloquent query\nQueryBuilder::for(User::where('active', true))\n    ->allowedFilters('name')\n    ->get();\n\n\u002F\u002F From a relation\nQueryBuilder::for($team->users())\n    ->allowedFilters('name')\n    ->get();\n```\n\n## Common Patterns\n\n### Controller with Full Query Builder\n\n```php\nclass UsersController\n{\n    public function index()\n    {\n        $users = QueryBuilder::for(User::class)\n            ->allowedFilters(\n                AllowedFilter::partial('name'),\n                AllowedFilter::exact('email'),\n                AllowedFilter::scope('active'),\n            )\n            ->allowedSorts('name', 'created_at')\n            ->allowedIncludes('posts', 'permissions')\n            ->allowedFields('id', 'name', 'email')\n            ->defaultSort('name')\n            ->paginate();\n\n        return UserResource::collection($users);\n    }\n}\n```\n\n### Dynamic Arrays with Variadic Methods\n\n```php\n$filters = ['name', 'email'];\n$sorts = ['name', 'created_at'];\n\nQueryBuilder::for(User::class)\n    ->allowedFilters(...$filters)\n    ->allowedSorts(...$sorts);\n```\n\n## Common Pitfalls\n\n- **N+1 queries**: Always use `allowedIncludes()` to eager load relationships instead of accessing them in views\u002Fresources without loading\n- **Forgetting to allow**: All filters, sorts, includes, and fields must be explicitly allowed. Unallowed parameters throw exceptions by default\n- **Filter value types**: Filter values come from query strings as strings. Use `AllowedFilter::exact()` for boolean\u002Finteger columns, or handle casting in custom filters\n- **Nested include counts**: Count and exists variants are only auto-generated for top-level includes, not for nested includes like `posts.comments`\n- **Field selection with includes**: When using `allowedFields()` with `allowedIncludes()`, make sure to include the foreign key columns needed for the relationships\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"spatie","main","5cfcb5a7c17ede079f700eaebe2541a2e8a35b99",".ai\u002Fskills\u002Fskills\u002Flaravel-query-builder",0,"https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend","https:\u002F\u002Fgithub.com\u002Fw1do","https:\u002F\u002Fw1do.ru","Разработчик с использованием AI (Claude, Junie), автоматизация систем, построение сложной архитектуры на Laravel","2026-07-30 04:57:34",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add w1do\u002Fcontent-backend --skill laravel-query-builder",{"tool":41,"command":42},"bunx","bunx skills add w1do\u002Fcontent-backend --skill laravel-query-builder",{"tool":44,"command":45},"pnpm","pnpm dlx skills add w1do\u002Fcontent-backend --skill laravel-query-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fskills\u002Flaravel-query-builder\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M77NER3ZH88RF7652A2GPV0N","spatie-version-control","Apply Spatie's version control conventions when creating commits, branches, pull requests, or managing Git repositories; use for naming repos, writing commit messages, choosing branch strategies, and merging code.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-version-control\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M77NEM7BB0878PKWFZFBFV2A","spatie-security","Apply Spatie's security guidelines when configuring applications, databases, or servers, or when reviewing code for security concerns; use for SSL setup, CSRF protection, password hashing, database permissions, and server hardening.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-security\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M77NEH0V5W6RZP9VJXRBR9QT","spatie-laravel-php","Apply Spatie's Laravel and PHP coding standards for any task that creates, edits, reviews, refactors, or formats Laravel\u002FPHP code or Blade templates; use for controllers, Eloquent models, routes, config, validation, migrations, tests, and related files to align with Laravel conventions and PSR-12.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-laravel-php\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M77NECV2J2GTVQ7KDM5X2WC4","spatie-javascript","Apply Spatie's JavaScript coding standards for any task that creates, edits, reviews, refactors, or formats JavaScript or TypeScript code; use for variable declarations, comparisons, functions, destructuring, and Prettier configuration to align with Spatie's JS conventions.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-javascript\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M77NE4V810CG6DRAKNFEREZ4","sluggable-development","Use when making a field on an Eloquent model sluggable, generating the migration for a slug column, switching to self-healing URLs, or resolving a model from its slug in a route. Trigger when the request mentions slugs, permalinks, the spatie\u002Flaravel-sluggable package, the HasSlug or HasTranslatableSlug trait, the #[Sluggable] attribute, SlugOptions, findBySlug, self-healing URLs, or stale slug redirects in a Laravel project. Covers choosing between the attribute and the trait, generating unique slugs, configuring separator\u002Flength\u002Flanguage\u002Fscope\u002Funiqueness, preventing slug overwrites, translatable slugs via spatie\u002Flaravel-translatable, route model binding through the slug column, self-healing route keys, customizing the 308 redirect through the SelfHealing facade, and overriding the default actions via config\u002Fsluggable.php. Do not use for one-off URL-safe strings, signed URLs, or Laravel's built-in Str::slug helper when the result is not stored on a model.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fsluggable-development\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M77NDSVMR88QCTD52WBBM72V","olakunlevpn-filament-skills","Use when writing, reviewing, or refactoring Filament PHP v5 code -- resources, forms, tables, infolists, actions, widgets, panels, relation managers, multi-tenancy, testing, or plugin development. Always apply these standards to all Filament work.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FSKILL.md",[],[]]