Disadvantages of storing models ids in view

Posted 1 month ago by Grelav

Hello developers

I would like to know what are the disadvantage of store / set entity / model id in Html view e.g

<div data-id='{{product->id}}'>
    product Label : {{$product->label}}

To use the "id" an ajax request to update product or to full view it.

recommendations please

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

Reply to

Use Markdown with GitHub-flavored code blocks.