Registry / database / think-studio-laravel-json-field-cast

think-studio-laravel-json-field-cast

JSON →
library2.3.0phppackagistunverified

Cast json field to custom object.

composer require think.studio/laravel-json-field-cast
INSTALL
IMPORT
SIG · THINK-STUDIO-LARAV
T
think-studio-laravel-json-field-cast
databasephpv2.3.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.

JsonFieldCast
use ThinkStudio\LaravelJsonFieldCast\Casts\JsonFieldCast;

Cast a JSON column to a custom object in Eloquent

use ThinkStudio\LaravelJsonFieldCast\Casts\JsonFieldCast; class User extends Model { protected $casts = [ 'metadata' => JsonFieldCast::class . ':' . UserMeta::class, ]; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Meta
1
OpenAI (training)
1
Resources
think-studio-laravel-json-field-cast — pip install think-studio-laravel-json-field-cast · libregistry