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

Posted 8 months 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.