Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Agents
banulakwin/filament-pricing
claude-code
cursor
admin
pricing
laravel
coupons
filament

This package provides a Filament administrative interface for the banulakwin/laravel-pricing package. It manages the CRUD operations for Coupon models natively integrating with Filament's UI patterns.

Install
php artisan boost:add-skill banulakwin/filament-pricing

Save this content to: AGENTS.md

# Agent Documentation: `banulakwin/filament-pricing-admin`

## Overview
This package provides a Filament administrative interface for the `banulakwin/laravel-pricing` package. It manages the CRUD operations for `Coupon` models natively integrating with Filament's UI patterns.

## Core Concepts
- **`CouponResource`**: Central Filament resource managing Coupons.
- **`CouponForm`**: Uses Repeaters to manage `items` (polymorphic morph targets) and `users` relationship data. Uses dynamic options loading for the `couponable_id` based on the selected `couponable_type`.
- **`CouponInfolist`**: Presents coupon details using `RepeatableEntry` components to display the linked targeted items and users.
- **`CouponsTable`**: Displays coupon aggregations (e.g., "Global" vs "X targets" and "All users" vs "Y users") cleanly.

## Configuration Alignment
- **`couponable_types`**: The morph types defined in `config/pricing.php` and `config/filament-pricing-admin.php` dictate the available types in the target repeater. Example:
  ```php
  'couponable_types' => [
      'App\\Models\\Movie' => 'Movie',
      'App\\Models\\TvShow' => 'TV Show',
  ]
  ```
- **`coupon_user`**: Defines how user records are searched, formatted, and displayed within the `users` restriction Repeater.

## Implementation Notes
- Repeaters for `items` and `users` use `->relationship()` to natively handle database syncing for the `coupon_items` and `coupon_users` pivot tables.
- Fixed/Percentage values and constraints (max uses, expiry, first-time only) are toggled intuitively via the main schema fields.

Agent Documentation: banulakwin/filament-pricing-admin

Overview

This package provides a Filament administrative interface for the banulakwin/laravel-pricing package. It manages the CRUD operations for Coupon models natively integrating with Filament's UI patterns.

Core Concepts

  • CouponResource: Central Filament resource managing Coupons.
  • CouponForm: Uses Repeaters to manage items (polymorphic morph targets) and users relationship data. Uses dynamic options loading for the couponable_id based on the selected couponable_type.
  • CouponInfolist: Presents coupon details using RepeatableEntry components to display the linked targeted items and users.
  • CouponsTable: Displays coupon aggregations (e.g., "Global" vs "X targets" and "All users" vs "Y users") cleanly.

Configuration Alignment

  • couponable_types: The morph types defined in config/pricing.php and config/filament-pricing-admin.php dictate the available types in the target repeater. Example:
    'couponable_types' => [
        'App\\Models\\Movie' => 'Movie',
        'App\\Models\\TvShow' => 'TV Show',
    ]
    
  • coupon_user: Defines how user records are searched, formatted, and displayed within the users restriction Repeater.

Implementation Notes

  • Repeaters for items and users use ->relationship() to natively handle database syncing for the coupon_items and coupon_users pivot tables.
  • Fixed/Percentage values and constraints (max uses, expiry, first-time only) are toggled intuitively via the main schema fields.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route