Bootstrap Modal form for Managing Data (avoid passing ids to view)

Posted 1 year ago by ochirach


Laravel 5.4

I have a table (say users table) with the following fields:

Names, Birthday, National ID, Edit, Remove

...and I want to use Modals to manage the Edit and Remove features. On click, the edit button for the selected row will edit that users data in the pop-up modal already pre-filled with the active information.

What is the safest method of passing the 'id' of the record being updated? I am not comfortable with passing the id for all users to the view for security reasons.


Similar case where solution was to stick with sending all ids to view:


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.