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
Actions
fluttersdk/magic-starter-laravel
cursor
actions
contracts
validation
magicstarter
feature-flags
newsletter
two-factor

Actions

Install
php artisan boost:add-skill fluttersdk/magic-starter-laravel

Save this content to: .cursor/rules/actions.md

# Actions

- Each action implements exactly one contract from `Contracts/`
- Public method name matches contract: `create()`, `update()`, `invite()`, `delete()`
- Validate input inline with `Validator::make($input, $rules)->validate()` — not in constructor
- Use numbered inline comments to explain flow steps: `// 1. Validate`, `// 2. Create user`, etc.
- Resolve models via `MagicStarter::userModel()`, `::teamModel()` — never hardcode class names
- Gate feature-specific logic: `if (Features::hasTeamFeatures()) { ... }`
- Use `Arr::get($input, 'key')` for optional field retrieval from validated input
- Return typed values matching contract signature (Authenticatable, Model, void)
- Newsletter: write through `NewsletterSubscriber::subscribeUser()` / `unsubscribe()`; read the marketing audience only through `marketable()`
- Two-factor: defer notifications via events, don't send directly from action

Actions

  • Each action implements exactly one contract from Contracts/
  • Public method name matches contract: create(), update(), invite(), delete()
  • Validate input inline with Validator::make($input, $rules)->validate() — not in constructor
  • Use numbered inline comments to explain flow steps: // 1. Validate, // 2. Create user, etc.
  • Resolve models via MagicStarter::userModel(), ::teamModel() — never hardcode class names
  • Gate feature-specific logic: if (Features::hasTeamFeatures()) { ... }
  • Use Arr::get($input, 'key') for optional field retrieval from validated input
  • Return typed values matching contract signature (Authenticatable, Model, void)
  • Newsletter: write through NewsletterSubscriber::subscribeUser() / unsubscribe(); read the marketing audience only through marketable()
  • Two-factor: defer notifications via events, don't send directly from action
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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums