diff --git a/src/Models/Thread.php b/src/Models/Thread.php index a8b46ae..fd0c7bf 100644 --- a/src/Models/Thread.php +++ b/src/Models/Thread.php @@ -125,11 +125,11 @@ public static function getAllLatest() * Returns all threads by subject. * * @param string $subject - * @return self + * @return \Illuminate\Database\Eloquent\Collection|static[] */ public static function getBySubject($subject) { - return self::where('subject', 'like', $subject)->get(); + return static::where('subject', 'like', $subject)->get(); } /**