Skip to content
Snippets Groups Projects
Unverified Commit fbda44f1 authored by Robb Lewis's avatar Robb Lewis
Browse files

Search metadata as well

parent 80791f05
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -92,7 +92,10 @@ class TweetRepository {
*/
public function search($search)
{
return Tweet::where('text', 'LIKE', '%'.$search.'%')->orderBy('time', 'desc')->paginate(self::$paginate);
return Tweet::where('text', 'LIKE', '%'.$search.'%')
->orWhere('extra', 'LIKE', '%'.$search.'%')
->orderBy('time', 'desc')
->paginate(self::$paginate);
}
 
/**
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment