I\'m needing to convert this query for Laravel and I\'m having issues trying to create an Insert... Select statement using Laravel\'s Eloquont ORM, or Queries. I\'m not sure
Try this
DB::table(table2) ->insert( (array) DB::table(table1) ->where('column', '=', $variable) ->select('column1','column2') ->first() );