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
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.
can u tell me what should i change
in my code