Exemplo n.º 1
0
 /**
  * Seed backups table
  *
  * @param $backups
  */
 private function seedBackupsTable($backups)
 {
     Backup::truncate();
     $data = [];
     foreach ($backups as $backup) {
         $data[] = ['id' => $backup->id, 'disk_name' => $backup->disk_name, 'file_path' => $backup->file_path, 'type' => $backup->type, 'filesystems' => $backup->filesystems, 'file_size' => $backup->getFileSize($backup->file_path), 'created_at' => $backup->created_at, 'updated_at' => $backup->updated_at];
     }
     Backup::insert($data);
 }