How to undelete a soft deleted Eloquent row?

October 26, 2018

Use the restore() method.

<?php
User::withTrashed()->where("id",1)->restore()