[ 'driver' => 'sqlite', 'database' => $sqlitePath, 'prefix' => '', ]]); $exporter = new SqliteExportService($connectionName); $exporter->exportMultiple([ 'FavoriteSongs' => [ 'query' => fn () => DB::table('FavoriteSongs'), 'tableSchema' => function (Blueprint $table) { $table->id(); $table->string('songNumber',20); $table->string('userPhone', 10); $table->timestamps(); }, 'transformer' => fn ($row) => [ 'songNumber' => $row->songNumber, 'userPhone' => $row->userPhone, 'created_at' => $row->created_at, 'updated_at' => $row->updated_at, ], ], ]); SendSqliteFileJob::dispatch($sqlitePath); } }