Example #1
0
 public function getSnapshotsData($webpageId)
 {
     $tmpSnapsnots = Snapshot::where('webpage_id', $webpageId)->get();
     $snapsnots = [];
     foreach ($tmpSnapsnots as $snapshot) {
         $snapshots[] = ['date' => date('d.m.Y', strtotime($snapshot->created_at)), 'snapshotId' => $snapshot->id, 'hasChanges' => $snapshot->hasChanges()];
     }
     return $snapshots;
 }