Handle record creation

I don't want to use handle record creation in my created page i want to use it boot method in my model --refer screenshot to create update and save but when am creating it giving null value and my DND setting is a json object
3 Replies
GHOST-117
GHOST-117OP2y ago
ByteXR
ByteXR2y ago
It is way better practice to use mutators in what are you doing: https://laravel.com/docs/10.x/eloquent-mutators#accessors-and-mutators As laravel will automatically do it for you
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
GHOST-117
GHOST-117OP2y ago
can u tell me what should i change in my code
Want results from more Discord servers?
Add your server