id; $significantother->first_name = decrypt($significantother->first_name); if (! is_null($significantother->last_name) and trim($significantother->last_name) != '') { $significantother->last_name = decrypt($significantother->last_name); } $significantother->save(); } $activities = Activity::all(); foreach ($activities as $activity) { echo $activity->id; if (! is_null($activity->description)) { $activity->description = decrypt($activity->description); $activity->save(); } } $kids = Kid::all(); foreach ($kids as $kid) { echo $kid->id; $kid->first_name = decrypt($kid->first_name); $kid->save(); } $notes = Note::all(); foreach ($notes as $note) { echo $note->id; $note->body = decrypt($note->body); $note->save(); } $contacts = Contact::all(); foreach ($contacts as $contact) { if (! is_null($contact->food_preferencies) and trim($contact->food_preferencies) != '') { $contact->food_preferencies = decrypt($contact->food_preferencies); $contact->save(); } } } }