From b586aa821c83b2138396116aca3948625326b7fb Mon Sep 17 00:00:00 2001 From: yordadev Date: Tue, 6 Aug 2024 01:01:21 +0000 Subject: [PATCH] Fix styling --- src/Models/ShortUrlClick.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Models/ShortUrlClick.php b/src/Models/ShortUrlClick.php index f3f1070..27bbe3f 100644 --- a/src/Models/ShortUrlClick.php +++ b/src/Models/ShortUrlClick.php @@ -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.'%')