I want the data obtained from find table1 to insert into table2 in laravel
I want the data obtained from find table1 to insert into table2 $table1= Table1::find($id); $table2= new Table2(); without $table2->field1 = $table1->field1; $table2->field2 = $table1->field2; where I have multiple fields How do I use it? to be able to write short…