Skip to content

2.x next #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"permissions": {
"allow": [
"WebFetch",
"Bash(ls:*)",
"Edit",
"Bash(php artisan:*)",
"Bash(composer test)",
"Bash(composer lint:*)",
Expand Down Expand Up @@ -33,7 +36,9 @@
"Bash(composer pint:*)",
"Bash(vendor/bin/pint:*)",
"Bash(diff:*)",
"Bash(vendor/bin/phpstan analyse:*)"
"Bash(vendor/bin/phpstan analyse:*)",
"Bash(npm run build:*)",
"mcp__ide__getDiagnostics"
],
"deny": []
}
Expand Down
19 changes: 19 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ Tests use Pest PHP with custom expectations:

Test fixtures include `Post` and `User` models with pre-configured resources.

**Environment Setup**
- Tests run with SQLite in-memory database
- Automatic migration of test database
- Parallel execution enabled by default

### Multi-tenancy

The package supports complete tenant isolation via `TenantContextService`. Custom fields are automatically scoped to the
Expand Down Expand Up @@ -276,6 +281,20 @@ The project includes architecture tests to enforce coding standards:

See the full contributing guide at https://custom-fields.relaticle.com/contributing

## Common Development Tasks

### Debugging Custom Fields
- Use `dd()` or `ray()` to inspect field values and configurations
- Check `storage/logs/laravel.log` for validation and visibility condition errors
- Enable query logging to debug performance issues with field loading
- Test field behavior in isolation using Pest tests

### Creating New Field Types
1. Create a new class in `src/FieldTypes/` implementing `FieldTypeDefinitionInterface`
2. Register the field type in a service provider
3. Add corresponding form component, table column, and infolist entry methods
4. Create tests for the new field type behavior

## Resources

- **Documentation**: https://custom-fields.relaticle.com/
Expand Down
Loading