open_in_new
content_copy
MyModel::withTrashed()->updateOrCreate([ 'foo' => $foo, // ... ], [ 'deleted_at' => null, // ... ]);