diff --git a/src/Repository.php b/src/Repository.php
index <HASH>..<HASH> 100644
--- a/src/Repository.php
+++ b/src/Repository.php
@@ -92,7 +92,7 @@ abstract class Repository
     {
         $query = $this->createBaseBuilder($options);
 
-        $query->orderBy('created_at', 'DESC');
+        $query->orderBy($this->getCreatedAtColumn(), 'DESC');
 
         return $query->first();
     }
@@ -108,7 +108,7 @@ abstract class Repository
     {
         $query = $this->createBaseBuilder($options);
 
-        $query->orderBy('created_at', 'DESC');
+        $query->orderBy($this->getCreatedAtColumn(), 'DESC');
 
         return $query->first();
     }
Refactor getLatest and getLatestWhere to use getCreatedAtColumn