You will have to write the code by your own.
If the "akuns" table already has data and you just want to transfer it via seeder, all you need is one simple foreach statement:
- Select the data from the "akuns" table
- Loop over it and insert the rows to the master_lookups table
If you want to dynamically insert data in both of the tables, you can take advantage of the Model Factories ( https://laravel.com/docs/5.3/database-testing#writing-factories ) to define factory for the "akuns" table and then use it in your seeder like this:
factory(App\Akun::class, 50)->create()->each(function ($akun) {
DB::table('master_lookups')->insert([
'code' => $akun->code,
'name' => $akun->name,
'information' => json_encode($akun->code_shopping),
]);
});
Hope that makes sense?