Registry / database / spatie-laravel-schemaless-attributes

spatie-laravel-schemaless-attributes

JSON →
library2.6.0phppackagistunverified

Add schemaless attributes to Eloquent models

composer require spatie/laravel-schemaless-attributes
INSTALL
IMPORT
SIG · SPATIE-LARAVEL-SCH
S
spatie-laravel-schemaless-attributes
databasephpv2.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SchemalessAttributes
use Spatie\SchemalessAttributes\SchemalessAttributes;

Add schemaless attributes to an Eloquent model

use Spatie\SchemalessAttributes\SchemalessAttributes; $model = new YourModel(); $model->schemaless_attributes = new SchemalessAttributes(['key' => 'value']); $model->save();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Meta
1
Resources
spatie-laravel-schemaless-attributes — pip install spatie-laravel-schemaless-attributes · libregistry