# spatie/laravel-schemaless-attributes

Add schemaless attributes to Eloquent models

Repository: https://github.com/spatie/laravel-schemaless-attributes
Canonical: https://ross.abutalabs.com/products/laravel-schemaless-attributes
Homepage: https://spatie.be/en/opensource
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, json, nosql, eloquent
Last push: 2026-06-02T06:36:27+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 85, release rhythm 39, longevity 100
- inputs: {"age_days": 3039, "days_push": 92, "days_rel": 193, "gap_med": 187.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1085, forks 53 (observed 2026-08-28T04:03:31.600161+00:00)

## What it is
A PHP/Laravel package by Spatie that adds schemaless attributes to Eloquent models via a trait, storing arbitrary key-value data in a single JSON column with dot-notation access and query scopes.

## Use cases
- store arbitrary attributes on eloquent models without migrations
- add nosql-style flexible fields to a laravel app
- save extra metadata in a json column on a model
- query models by dynamic schemaless attributes
- avoid frequent schema changes for optional model fields

## Facets
- artifact type: library
- maturity: stable
- function: database, json, developer-tools
- domain: databases, web-development, backend
- platform: php, self-hosted
- tags: eloquent, schemaless, json-column, nosql, spatie, model-attributes, orm, laravel

## Member repositories
- spatie/laravel-schemaless-attributes (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.600161+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:53.449616+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-schemaless-attributes (fetched 2026-08-28T04:03:31.600161+00:00, sha 68dc43834ee3)
  - homepage: https://spatie.be/en/opensource (fetched 2026-08-29T12:52:37.769247+00:00, sha 4a0ae7f7c9b6)
  - site_page: https://spatie.be/docs (fetched 2026-08-29T12:52:37.778502+00:00, sha 08e024d86d95)
  - site_page: https://spatie.be/about-us (fetched 2026-08-29T12:52:37.780318+00:00, sha d3cb88e4b34c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
