How can i save duplicate record in laravel ?

Posted 6 months ago by raviawasti

how can i replicate a same record with some changes in laravel

for example i have a record saved in database in openings table

example: id :1 name:class one jobs class:one startdate:12/01/2018 enddate:13/04/2018 status:active

i want to replicate same record in openings table by clicking on replicate button.Copy same record and create new one just like this:

id:2 name:class one jobs class:one startdate:12/01/2018 enddate:13/04/2018 status:active

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