[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NBABAZS69CHGZYAGYH8M4":3,"skill-same:01M77NBABAZS69CHGZYAGYH8M4":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},"01M77NBABAZS69CHGZYAGYH8M4","payment-platega-integration-laravel",null,"Reference implementation of the Platega.io payment gateway integration in a Laravel 11+ project built with DDD + CQRS. Contains the full payment gateway factory pattern, the PlategaGateway HTTP client, the top-up flow, the public callback endpoint, tests and known pitfalls. Use as a copy-paste blueprint to build an identical real-money balance top-up integration (Platega or any other gateway) in another Laravel project.","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\u002Fpayment-platega-integration-laravel\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: payment-platega-integration-laravel\ndescription: \"Reference implementation of the Platega.io payment gateway integration in a Laravel 11+ project built with DDD + CQRS. Contains the full payment gateway factory pattern, the PlategaGateway HTTP client, the top-up flow, the public callback endpoint, tests and known pitfalls. Use as a copy-paste blueprint to build an identical real-money balance top-up integration (Platega or any other gateway) in another Laravel project.\"\nlicense: MIT\nmetadata:\n  author: UNIQDEVELOPER\n---\n\n# Payment Gateway Integration Blueprint (Laravel, DDD + CQRS)\n\nThis skill provides a complete reference for integrating a payment system (using **[Platega.io](https:\u002F\u002Fplatega.io)** as the example) into a Laravel project using DDD and CQRS. It includes the full gateway factory pattern, DTOs, Handlers, Controllers, and Tests. Use this as a copy-paste blueprint to implement identical real-money balance top-up functionality in any Laravel project.\n\n## Key Concept: Payment Gateway Factory\n\nTo add a new payment system, you don't need to modify controllers or callback handling. Simply implement the `PaymentGatewayInterface` and register it in the factory by name:\n\n```php\n$factory->register('platega', new PlategaGateway($credentials));\n$factory->register('stripe', new StripeGateway($credentials)); \u002F\u002F Easy to expand\n```\n\nControllers always work through `PaymentGatewayFactory::make('platega')` or iterate through `PaymentGatewayFactory::all()`.\n\n## Architecture\n\n```mermaid\nsequenceDiagram\n    participant U as User\n    participant BC as BillingController::topUp\n    participant H as InitiatePaymentHandler\n    participant F as PaymentGatewayFactory\n    participant PG as PlategaGateway\n    participant P as Platega.io\n    participant CB as PaymentCallbackController \u002Fpayments\n    participant CH as ProcessPaymentCallbackHandler\n\n    U->>BC: POST \u002Fbilling\u002Ftop-up (amount)\n    BC->>H: InitiatePaymentCommand\n    H->>F: make('platega')\n    F-->>H: PlategaGateway\n    H->>PG: createTransaction()\n    PG->>P: POST \u002Fv2\u002Ftransaction\u002Fprocess\n    P-->>PG: transactionId, redirect url\n    H-->>BC: PaymentTransactionData (redirect url)\n    BC-->>U: Inertia::location(redirect url)\n    U->>P: Pay on Platega page\n    P->>CB: POST \u002Fpayments (callback CONFIRMED)\n    CB->>F: Find gateway via verifyCallback()\n    F-->>CB: PlategaGateway\n    CB->>CH: ProcessPaymentCallbackCommand\n    CH-->>CH: Credit balance (idempotent)\n    CH-->>CB: ok\n    CB-->>P: 200 OK\n```\n\n### Important Design Decisions:\n- **Balance Credit**: Only occurs after a `CONFIRMED` webhook. Never optimistic.\n- **Isolated Domain**: `App\\Domain\\Payment` is independent of third-party billing packages to ensure maintainability.\n- **Single Endpoint**: A single public `POST \u002Fpayments` endpoint handles **all** gateways. The controller determines which gateway sent the callback by iterating through registered gateways and calling `verifyCallback()`.\n- **Idempotency**: The callback handler checks the current payment status before applying changes to prevent double-crediting.\n\n## File Structure\n\n```text\napp\u002F\n├── Domain\u002F\n│   └── Payment\u002F\n│       ├── Contracts\u002F\n│       ├── DTOs\u002F\n│       ├── Gateways\u002F\n│       ├── Handlers\u002F\n│       ├── Commands\u002F\n│       ├── Exceptions\u002F\n│       └── PaymentGatewayFactory.php\n├── Http\u002F\n│   └── Controllers\u002F\n│       ├── User\u002FBillingController.php\n│       └── Payment\u002FApi\u002FV1\u002FPaymentCallbackController.php\n└── Providers\u002F\n    └── PaymentServiceProvider.php\n```\n\n## 1. `PaymentGatewayInterface` Contract\n\nEvery new payment system must implement this interface.\n\n```php\nnamespace App\\Domain\\Payment\\Contracts;\n\nuse App\\Domain\\Payment\\DTOs\\CreatePaymentData;\nuse App\\Domain\\Payment\\DTOs\\PaymentCallbackData;\nuse App\\Domain\\Payment\\DTOs\\PaymentTransactionData;\nuse Illuminate\\Http\\Request;\n\ninterface PaymentGatewayInterface\n{\n    public function getName(): string;\n    public function createTransaction(CreatePaymentData $data): PaymentTransactionData;\n    public function getTransactionStatus(string $transactionId): PaymentTransactionData;\n    public function verifyCallback(Request $request): bool;\n    public function parseCallback(Request $request): PaymentCallbackData;\n}\n```\n\n## 2. DTOs (`spatie\u002Flaravel-data`)\n\nAll DTOs are simple readonly classes.\n\n```php\nnamespace App\\Domain\\Payment\\DTOs;\n\nuse Spatie\\LaravelData\\Data;\n\nclass CreatePaymentData extends Data\n{\n    public function __construct(\n        \u002F** Amount in the main currency unit (e.g., Rubles\u002FDollars), not cents\u002Fkopecks. *\u002F\n        public int $amount,\n        public string $currency,\n        public string $description,\n        public string $returnUrl,\n        public ?string $failedUrl = null,\n        public ?string $payload = null,\n    ) {}\n}\n```\n\n> **Note on Units**: `CreatePaymentData->amount` is in main currency units (as expected by most APIs), while the database typically stores `amount` as integers (cents\u002Fkopecks). Explicitly document and handle this conversion at the domain boundary.\n\n## 3. `PaymentGatewayFactory`\n\nAn in-memory registry for gateways.\n\n```php\nnamespace App\\Domain\\Payment;\n\nuse App\\Domain\\Payment\\Contracts\\PaymentGatewayInterface;\nuse App\\Domain\\Payment\\Exceptions\\UnsupportedPaymentGatewayException;\n\nclass PaymentGatewayFactory\n{\n    private array $gateways = [];\n\n    public function register(string $name, PaymentGatewayInterface $gateway): static\n    {\n        $this->gateways[$name] = $gateway;\n        return $this;\n    }\n\n    public function make(string $name): PaymentGatewayInterface\n    {\n        return $this->gateways[$name] ?? throw new UnsupportedPaymentGatewayException($name);\n    }\n\n    public function all(): array\n    {\n        return $this->gateways;\n    }\n}\n```\n\n## 4. `PlategaGateway` Implementation\n\nUses Laravel's `Http` facade.\n\n```php\nnamespace App\\Domain\\Payment\\Gateways;\n\nuse App\\Domain\\Payment\\Contracts\\PaymentGatewayInterface;\n\u002F\u002F ... (imports)\n\nclass PlategaGateway implements PaymentGatewayInterface\n{\n    public function verifyCallback(Request $request): bool\n    {\n        $merchantId = (string) $request->header('X-MerchantId');\n        $secret = (string) $request->header('X-Secret');\n\n        return hash_equals($this->credentials->merchantId, $merchantId)\n            && hash_equals($this->credentials->apiKey, $secret);\n    }\n    \u002F\u002F ... (implementation)\n}\n```\n\n### Implementation Details:\n- **`verifyCallback`**: Use `hash_equals()` to prevent timing attacks.\n- **Logging**: Log failures before throwing exceptions to aid in production debugging.\n\n## 5. `PaymentServiceProvider`\n\n```php\nnamespace App\\Providers;\n\nuse App\\Domain\\Payment\\PaymentGatewayFactory;\nuse App\\Domain\\Payment\\Gateways\\PlategaGateway;\n\u002F\u002F ... (imports)\n\nclass PaymentServiceProvider extends ServiceProvider\n{\n    public function register(): void\n    {\n        $this->app->singleton(PaymentGatewayFactory::class, function () {\n            $factory = new PaymentGatewayFactory;\n            $factory->register('platega', new PlategaGateway(\n                \u002F\u002F credentials from config...\n            ));\n            return $factory;\n        });\n    }\n}\n```\n\n## 6. Callback Handling (Idempotency)\n\nThe `ProcessPaymentCallbackHandler` must ensure that repeated webhooks do not credit the balance multiple times.\n\n```php\nprivate function confirm(Payment $payment): Payment\n{\n    if ($payment->isCompleted()) {\n        return $payment;\n    }\n\n    DB::transaction(function () use ($payment) {\n        $billable = $payment->billable;\n        $billable->balance += $payment->amount \u002F 100; \u002F\u002F kopecks to rubles\n        $billable->save();\n\n        $payment->update(['status' => 'completed', 'paid_at' => now()]);\n    });\n\n    return $payment->refresh();\n}\n```\n\n## 7. Controllers\n\n### `BillingController::topUp`\nInitiates the payment and redirects the user using `Inertia::location()`.\n\n### `PaymentCallbackController`\nA generic controller that handles all incoming callbacks.\n\n```php\npublic function handle(Request $request, PaymentGatewayFactory $gatewayFactory, ProcessPaymentCallbackHandler $handler): JsonResponse\n{\n    $gateway = collect($gatewayFactory->all())\n        ->first(fn ($candidate) => $candidate->verifyCallback($request));\n\n    if (! $gateway) {\n        return response()->json(['message' => 'Unauthorized'], 401);\n    }\n\n    $handler->handle(new ProcessPaymentCallbackCommand(\n        gatewayName: $gateway->getName(),\n        callback: $gateway->parseCallback($request),\n    ));\n\n    return response()->json(['success' => true]);\n}\n```\n\n## 8. Common Pitfalls\n\n1. **Endpoint Versions**: API providers often change field names between versions (e.g., `url` vs `redirect`). Use defensive mapping in the gateway implementation.\n2. **Currency Units**: Financial logic in the project uses integers (kopecks). Ensure clear conversion when sending data to external APIs that expect decimals.\n3. **Idempotency**: Always check the current status of the payment before processing a webhook. Webhooks are often retried.\n4. **Security**: Webhook endpoints must be public (no CSRF\u002FAuth). Verify authenticity using secure headers and `hash_equals()`.\n\n## 9. How to Port (Checklist)\n\n1. Install `spatie\u002Flaravel-data`.\n2. Copy `app\u002FDomain\u002FPayment` directory.\n3. Create and register `PaymentServiceProvider`.\n4. Configure credentials in `config\u002Fservices.php` and `.env`.\n5. Implement the top-up route using `InitiatePaymentHandler`.\n6. Register the public `\u002Fpayments` route for callbacks.\n7. Write\u002FCopy tests and adapt them to your specific `User`\u002F`Payment` models.\n8. Document endpoints via Swagger\u002FOpenAPI.\n","# Payment Gateway Integration Blueprint (Laravel, DDD + CQRS)\n\nThis skill provides a complete reference for integrating a payment system (using **[Platega.io](https:\u002F\u002Fplatega.io)** as the example) into a Laravel project using DDD and CQRS. It includes the full gateway factory pattern, DTOs, Handlers, Controllers, and Tests. Use this as a copy-paste blueprint to implement identical real-money balance top-up functionality in any Laravel project.\n\n## Key Concept: Payment Gateway Factory\n\nTo add a new payment system, you don't need to modify controllers or callback handling. Simply implement the `PaymentGatewayInterface` and register it in the factory by name:\n\n```php\n$factory->register('platega', new PlategaGateway($credentials));\n$factory->register('stripe', new StripeGateway($credentials)); \u002F\u002F Easy to expand\n```\n\nControllers always work through `PaymentGatewayFactory::make('platega')` or iterate through `PaymentGatewayFactory::all()`.\n\n## Architecture\n\n```mermaid\nsequenceDiagram\n    participant U as User\n    participant BC as BillingController::topUp\n    participant H as InitiatePaymentHandler\n    participant F as PaymentGatewayFactory\n    participant PG as PlategaGateway\n    participant P as Platega.io\n    participant CB as PaymentCallbackController \u002Fpayments\n    participant CH as ProcessPaymentCallbackHandler\n\n    U->>BC: POST \u002Fbilling\u002Ftop-up (amount)\n    BC->>H: InitiatePaymentCommand\n    H->>F: make('platega')\n    F-->>H: PlategaGateway\n    H->>PG: createTransaction()\n    PG->>P: POST \u002Fv2\u002Ftransaction\u002Fprocess\n    P-->>PG: transactionId, redirect url\n    H-->>BC: PaymentTransactionData (redirect url)\n    BC-->>U: Inertia::location(redirect url)\n    U->>P: Pay on Platega page\n    P->>CB: POST \u002Fpayments (callback CONFIRMED)\n    CB->>F: Find gateway via verifyCallback()\n    F-->>CB: PlategaGateway\n    CB->>CH: ProcessPaymentCallbackCommand\n    CH-->>CH: Credit balance (idempotent)\n    CH-->>CB: ok\n    CB-->>P: 200 OK\n```\n\n### Important Design Decisions:\n- **Balance Credit**: Only occurs after a `CONFIRMED` webhook. Never optimistic.\n- **Isolated Domain**: `App\\Domain\\Payment` is independent of third-party billing packages to ensure maintainability.\n- **Single Endpoint**: A single public `POST \u002Fpayments` endpoint handles **all** gateways. The controller determines which gateway sent the callback by iterating through registered gateways and calling `verifyCallback()`.\n- **Idempotency**: The callback handler checks the current payment status before applying changes to prevent double-crediting.\n\n## File Structure\n\n```text\napp\u002F\n├── Domain\u002F\n│   └── Payment\u002F\n│       ├── Contracts\u002F\n│       ├── DTOs\u002F\n│       ├── Gateways\u002F\n│       ├── Handlers\u002F\n│       ├── Commands\u002F\n│       ├── Exceptions\u002F\n│       └── PaymentGatewayFactory.php\n├── Http\u002F\n│   └── Controllers\u002F\n│       ├── User\u002FBillingController.php\n│       └── Payment\u002FApi\u002FV1\u002FPaymentCallbackController.php\n└── Providers\u002F\n    └── PaymentServiceProvider.php\n```\n\n## 1. `PaymentGatewayInterface` Contract\n\nEvery new payment system must implement this interface.\n\n```php\nnamespace App\\Domain\\Payment\\Contracts;\n\nuse App\\Domain\\Payment\\DTOs\\CreatePaymentData;\nuse App\\Domain\\Payment\\DTOs\\PaymentCallbackData;\nuse App\\Domain\\Payment\\DTOs\\PaymentTransactionData;\nuse Illuminate\\Http\\Request;\n\ninterface PaymentGatewayInterface\n{\n    public function getName(): string;\n    public function createTransaction(CreatePaymentData $data): PaymentTransactionData;\n    public function getTransactionStatus(string $transactionId): PaymentTransactionData;\n    public function verifyCallback(Request $request): bool;\n    public function parseCallback(Request $request): PaymentCallbackData;\n}\n```\n\n## 2. DTOs (`spatie\u002Flaravel-data`)\n\nAll DTOs are simple readonly classes.\n\n```php\nnamespace App\\Domain\\Payment\\DTOs;\n\nuse Spatie\\LaravelData\\Data;\n\nclass CreatePaymentData extends Data\n{\n    public function __construct(\n        \u002F** Amount in the main currency unit (e.g., Rubles\u002FDollars), not cents\u002Fkopecks. *\u002F\n        public int $amount,\n        public string $currency,\n        public string $description,\n        public string $returnUrl,\n        public ?string $failedUrl = null,\n        public ?string $payload = null,\n    ) {}\n}\n```\n\n> **Note on Units**: `CreatePaymentData->amount` is in main currency units (as expected by most APIs), while the database typically stores `amount` as integers (cents\u002Fkopecks). Explicitly document and handle this conversion at the domain boundary.\n\n## 3. `PaymentGatewayFactory`\n\nAn in-memory registry for gateways.\n\n```php\nnamespace App\\Domain\\Payment;\n\nuse App\\Domain\\Payment\\Contracts\\PaymentGatewayInterface;\nuse App\\Domain\\Payment\\Exceptions\\UnsupportedPaymentGatewayException;\n\nclass PaymentGatewayFactory\n{\n    private array $gateways = [];\n\n    public function register(string $name, PaymentGatewayInterface $gateway): static\n    {\n        $this->gateways[$name] = $gateway;\n        return $this;\n    }\n\n    public function make(string $name): PaymentGatewayInterface\n    {\n        return $this->gateways[$name] ?? throw new UnsupportedPaymentGatewayException($name);\n    }\n\n    public function all(): array\n    {\n        return $this->gateways;\n    }\n}\n```\n\n## 4. `PlategaGateway` Implementation\n\nUses Laravel's `Http` facade.\n\n```php\nnamespace App\\Domain\\Payment\\Gateways;\n\nuse App\\Domain\\Payment\\Contracts\\PaymentGatewayInterface;\n\u002F\u002F ... (imports)\n\nclass PlategaGateway implements PaymentGatewayInterface\n{\n    public function verifyCallback(Request $request): bool\n    {\n        $merchantId = (string) $request->header('X-MerchantId');\n        $secret = (string) $request->header('X-Secret');\n\n        return hash_equals($this->credentials->merchantId, $merchantId)\n            && hash_equals($this->credentials->apiKey, $secret);\n    }\n    \u002F\u002F ... (implementation)\n}\n```\n\n### Implementation Details:\n- **`verifyCallback`**: Use `hash_equals()` to prevent timing attacks.\n- **Logging**: Log failures before throwing exceptions to aid in production debugging.\n\n## 5. `PaymentServiceProvider`\n\n```php\nnamespace App\\Providers;\n\nuse App\\Domain\\Payment\\PaymentGatewayFactory;\nuse App\\Domain\\Payment\\Gateways\\PlategaGateway;\n\u002F\u002F ... (imports)\n\nclass PaymentServiceProvider extends ServiceProvider\n{\n    public function register(): void\n    {\n        $this->app->singleton(PaymentGatewayFactory::class, function () {\n            $factory = new PaymentGatewayFactory;\n            $factory->register('platega', new PlategaGateway(\n                \u002F\u002F credentials from config...\n            ));\n            return $factory;\n        });\n    }\n}\n```\n\n## 6. Callback Handling (Idempotency)\n\nThe `ProcessPaymentCallbackHandler` must ensure that repeated webhooks do not credit the balance multiple times.\n\n```php\nprivate function confirm(Payment $payment): Payment\n{\n    if ($payment->isCompleted()) {\n        return $payment;\n    }\n\n    DB::transaction(function () use ($payment) {\n        $billable = $payment->billable;\n        $billable->balance += $payment->amount \u002F 100; \u002F\u002F kopecks to rubles\n        $billable->save();\n\n        $payment->update(['status' => 'completed', 'paid_at' => now()]);\n    });\n\n    return $payment->refresh();\n}\n```\n\n## 7. Controllers\n\n### `BillingController::topUp`\nInitiates the payment and redirects the user using `Inertia::location()`.\n\n### `PaymentCallbackController`\nA generic controller that handles all incoming callbacks.\n\n```php\npublic function handle(Request $request, PaymentGatewayFactory $gatewayFactory, ProcessPaymentCallbackHandler $handler): JsonResponse\n{\n    $gateway = collect($gatewayFactory->all())\n        ->first(fn ($candidate) => $candidate->verifyCallback($request));\n\n    if (! $gateway) {\n        return response()->json(['message' => 'Unauthorized'], 401);\n    }\n\n    $handler->handle(new ProcessPaymentCallbackCommand(\n        gatewayName: $gateway->getName(),\n        callback: $gateway->parseCallback($request),\n    ));\n\n    return response()->json(['success' => true]);\n}\n```\n\n## 8. Common Pitfalls\n\n1. **Endpoint Versions**: API providers often change field names between versions (e.g., `url` vs `redirect`). Use defensive mapping in the gateway implementation.\n2. **Currency Units**: Financial logic in the project uses integers (kopecks). Ensure clear conversion when sending data to external APIs that expect decimals.\n3. **Idempotency**: Always check the current status of the payment before processing a webhook. Webhooks are often retried.\n4. **Security**: Webhook endpoints must be public (no CSRF\u002FAuth). Verify authenticity using secure headers and `hash_equals()`.\n\n## 9. How to Port (Checklist)\n\n1. Install `spatie\u002Flaravel-data`.\n2. Copy `app\u002FDomain\u002FPayment` directory.\n3. Create and register `PaymentServiceProvider`.\n4. Configure credentials in `config\u002Fservices.php` and `.env`.\n5. Implement the top-up route using `InitiatePaymentHandler`.\n6. Register the public `\u002Fpayments` route for callbacks.\n7. Write\u002FCopy tests and adapt them to your specific `User`\u002F`Payment` models.\n8. Document endpoints via Swagger\u002FOpenAPI.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"UNIQDEVELOPER","main","5cfcb5a7c17ede079f700eaebe2541a2e8a35b99",".ai\u002Fskills\u002Fskills\u002Fpayment-platega-integration-laravel",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 payment-platega-integration-laravel",{"tool":41,"command":42},"bunx","bunx skills add w1do\u002Fcontent-backend --skill payment-platega-integration-laravel",{"tool":44,"command":45},"pnpm","pnpm dlx skills add w1do\u002Fcontent-backend --skill payment-platega-integration-laravel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fskills\u002Fpayment-platega-integration-laravel\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",[],[]]