Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
yordadev authored and github-actions[bot] committed Aug 6, 2024
1 parent e6b5d6d commit b586aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/ShortUrlClick.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public function newEloquentBuilder($query): ClickQueryBuilder
return new ClickQueryBuilder($query);
}

public function scopeSearch($query, $keyword) {
public function scopeSearch($query, $keyword)
{
$query->whereHas('location', function ($q) use ($keyword) {
$q->where('countryName', 'like', '%'.$keyword.'%')
->orWhere('countryCode', 'like', '%'.$keyword.'%')
Expand Down

0 comments on commit b586aa8

Please sign in to comment.