protected function searchQuery(Builder $query, string $phrase)
    {
        return $query->where (function (Builder $query) use ($phrase) {
            $query->where('url', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('short_url_key', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('clicks', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('url', 'LIKE', '%' . $phrase . '%');
            });
    }
protected function searchQuery(Builder $query, string $phrase)
    {
        return $query->where (function (Builder $query) use ($phrase) {
            $query->where('url', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('short_url_key', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('clicks', 'LIKE', '%' . $phrase . '%')
                    ->orWhere('url', 'LIKE', '%' . $phrase . '%');
            });
    }
protected function searchQuery ( Builder $ query , string $ phrase ) { return $ query -> where ( function ( Builder $ query ) use ( $ phrase ) { $ query -> where ( 'url' , 'LIKE' , '%' . $ phrase . '%' ) -> orWhere ( 'short_url_key' , 'LIKE' , '%' . $ phrase . '%' ) -> orWhere ( 'clicks' , 'LIKE' , '%' . $ phrase . '%' ) -> orWhere ( 'url' , 'LIKE' , '%' . $ phrase . '%' ) ; } ) ; }
List search elements
@param Builder $query
@param string $phrase
@return Builder
List search elements