6 months ago

Laravel Update or Remove

Posted 6 months ago by phpxtreme

I have 1 table in a view ('create.blade.php') to create 'items' in which rows with inputs are dynamically added by a button with JQuery, in another edit view ('edit.blade.php') too I have a similar table that is used to modify the existing 'items'. Each row has a button to delete that row. My question is the following .. how can I do that when in the edit view ... delete an item from the table and do POST, in the controller ... update the 'items' that exist in the POST values, and if an item that existed previously, no longer exists in the parameters that I send as POST, then delete them from the table. Thank you very much in advance

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