File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ class UuidBase extends Eloquent
12
12
*/
13
13
public $ incrementing = false ;
14
14
15
+ protected $ keyType = 'string ' ;
16
+
15
17
/**
16
18
* Boot function from laravel.
17
19
*/
Original file line number Diff line number Diff line change 35
35
<env name =" QUEUE_CONNECTION" value =" sync" />
36
36
<env name =" SESSION_DRIVER" value =" array" />
37
37
<env name =" TELESCOPE_ENABLED" value =" false" />
38
- <env name =" SCOUT_DRIVER" value =" database " />
38
+ <env name =" SCOUT_DRIVER" value =" collection " />
39
39
<env name =" CAPTCHA_PUBLIC" value =" 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" />
40
40
<env name =" CAPTCHA_PRIVATE" value =" 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" />
41
41
</php >
Original file line number Diff line number Diff line change @@ -1215,4 +1215,16 @@ function checking_whether_a_conferences_is_rejected()
1215
1215
$ this ->assertFalse ($ conferenceA ->isRejected ());
1216
1216
$ this ->assertTrue ($ conferenceB ->isRejected ());
1217
1217
}
1218
+
1219
+ /** @test */
1220
+ public function searching_conferences_by_name (): void
1221
+ {
1222
+ $ conferenceA = Conference::factory ()->create (['location ' => 'Boston, MA ' ]);
1223
+ $ conferenceB = Conference::factory ()->create (['location ' => 'New York, NY ' ]);
1224
+
1225
+ $ results = Conference::searchQuery ('boston ' , fn ($ query ) => $ query )->get ();
1226
+
1227
+ $ this ->assertContains ($ conferenceA ->id , $ results ->pluck ('id ' ));
1228
+ $ this ->assertNotContains ($ conferenceB ->id , $ results ->pluck ('id ' ));
1229
+ }
1218
1230
}
You can’t perform that action at this time.
0 commit comments