Grelav
127
2
General

Disadvantages of storing models ids in view

Posted 5 months 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}}
</div>

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.