File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
6
6
## [ Unreleased]
7
7
8
+ ### Fixes
9
+
10
+ - Added check on customers for when using MySQL search driver to prevent undefined columns [ #40 ] ( https://github.com/getcandy/getcandy/issues/40 )
11
+
8
12
### Changed
9
13
10
14
- Changed ` https ` to ` http ` on country import due to issues with local environment CA installations.
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ protected static function newFactory(): CustomerFactory
45
45
*/
46
46
public function toSearchableArray ()
47
47
{
48
+ if (config ('scout.driver ' ) == 'mysql ' ) {
49
+ return $ this ->only (array_keys ($ this ->getAttributes ()));
50
+ }
51
+
48
52
$ metaFields = config ('getcandy-hub.customers.searchable_meta ' , []);
49
53
50
54
$ data = [
You can’t perform that action at this time.
0 commit comments