ochirach
170
13
Laravel

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

Posted 10 months ago by ochirach

HI,

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.

Thanks.

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

https://stackoverflow.com/questions/38201925/laravel-how-to-pass-id-to-modal-box-for-editing?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

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

Reply to

Use Markdown with GitHub-flavored code blocks.