public function importOrderNotes() { $notes = DB::connection('old')->table('order_notes')->get(); foreach ($notes as $note) { $newNote = new Note(); $newNote->order_number = $note->order_number; $newNote->note = $note->note; $newNote->created_at = $note->date; $newNote->updated_at = $note->date; $newNote->save(); } }