Skip to content

Commit

Permalink
Merge pull request #284 from cybercog/feature/thread-get-by-subject-e…
Browse files Browse the repository at this point in the history
…xtension

Thread method getBySubject call where from static
  • Loading branch information
cmgmyr authored Mar 10, 2018
2 parents b6235a4 + c60bf40 commit ef8f2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit ef8f2ec

Please sign in to comment.