/** * Reverse the migrations. * * @return void */ public function down() { $notifications = Notification::all(); foreach ($notifications as $notification) { $notification->update(['object_type' => snake_case($notification->object_type)]); } }