Issue
The attributes of laravel modal are named using underscore (_), for example :
first_name
but attributes of javascript objects are named with camelCase:
{ firstName: "..." }
And this presents a conflict, is there a solution to resolve it ?
Solution
Try to use Laravel eloquent resource pattern will do that for You. Check this helpful documentation. https://laravel.com/docs/8.x/eloquent-resources
Answered By - Zrelli Majdi Answer Checked By - Clifford M. (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.