public function requireDefaultRecords() { parent::requireDefaultRecords(); $imagesToProcess = GalleryImage::get()->filter('ExifRead', 0); foreach ($imagesToProcess as $image) { $image->processExifData(); } DB::alteration_message('Updated image metadata where EXIF has not been ' . 'processed', 'changed'); }
public function LatestGalleryImages($amount = 4) { return GalleryImage::get()->sort('LastEdited DESC')->limit($amount); }