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
foxws/laravel-relatable
claude-code
cursor
package-development
service-providers
eloquent-relations
pest
phpstan
composer

This repository is a Laravel package. Keep the package focused, idiomatic, and easy for Laravel developers to install, test, and maintain.

Install
php artisan boost:add-skill foxws/laravel-relatable

Save this content to: AGENTS.md

# Laravel Relatable

This repository is a Laravel package. Keep the package focused, idiomatic, and easy for Laravel developers to install, test, and maintain.

## Package Conventions

- Use Laravel-native package APIs and the existing service provider shape before adding abstractions.
- Keep package names, namespaces, Composer metadata, publish tags, documentation, and examples aligned with `foxws/laravel-relatable`.
- Add only the files and dependencies needed for the package behavior being implemented.
- Prefer explicit Laravel package code over helper abstractions unless the extension point is real.
- Keep tests focused on observable package behavior through public APIs, service provider wiring, and published resources.
- Relations are directed: A → B and B → A are separate rows, each with its own `score` and `boost`. Their weight (`score × boost`) orders related models.
- Always resolve the row model through `Relatable::modelClass()`, so a configured subclass (and its `$table`) is used everywhere.

## Quick Commands

- Full validation: `composer test`
- Formatting check: `composer lint:check`
- Static analysis: `composer analyse` (PHPStan level 7)
- Pest tests: `composer test:unit`
- Type coverage: `composer test:types`

## Local Skills

- `relatable-development` (`resources/boost/skills/relatable-development/SKILL.md`): use when integrating `foxws/laravel-relatable` into a consuming Laravel application.

Laravel Relatable

This repository is a Laravel package. Keep the package focused, idiomatic, and easy for Laravel developers to install, test, and maintain.

Package Conventions

  • Use Laravel-native package APIs and the existing service provider shape before adding abstractions.
  • Keep package names, namespaces, Composer metadata, publish tags, documentation, and examples aligned with foxws/laravel-relatable.
  • Add only the files and dependencies needed for the package behavior being implemented.
  • Prefer explicit Laravel package code over helper abstractions unless the extension point is real.
  • Keep tests focused on observable package behavior through public APIs, service provider wiring, and published resources.
  • Relations are directed: A → B and B → A are separate rows, each with its own score and boost. Their weight (score × boost) orders related models.
  • Always resolve the row model through Relatable::modelClass(), so a configured subclass (and its $table) is used everywhere.

Quick Commands

  • Full validation: composer test
  • Formatting check: composer lint:check
  • Static analysis: composer analyse (PHPStan level 7)
  • Pest tests: composer test:unit
  • Type coverage: composer test:types

Local Skills

  • relatable-development (resources/boost/skills/relatable-development/SKILL.md): use when integrating foxws/laravel-relatable into a consuming Laravel application.
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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource