WEBVTT

00:00.280 --> 00:01.960
Hi everyone!

00:01.960 --> 00:06.880
In this video I want to build one more features.

00:07.080 --> 00:14.880
Okay, first of all is here we have a get all users what I want to do right now.

00:17.800 --> 00:21.240
I want it can show okay.

00:21.280 --> 00:27.720
For example right here I will put the query string over here.

00:28.240 --> 00:32.560
And I will put the name for example like John okay.

00:32.880 --> 00:48.080
Or I can put the gmail.com over here okay I will allow this line of code can be very and short by name

00:48.120 --> 00:49.360
or email.

00:49.640 --> 00:51.520
So how do I do that.

00:53.320 --> 00:57.880
Well in here if we open the user service open the file method.

00:58.480 --> 01:04.240
Firstly we will file own by the is active will be true right?

01:04.920 --> 01:12.540
Right now, I think I will, um, separate anything into the another variable.

01:16.660 --> 01:19.500
I would value over here, and I.

01:22.220 --> 01:24.460
Think we would end it right now.

01:24.500 --> 01:25.060
Right now.

01:25.820 --> 01:26.300
Okay.

01:26.900 --> 01:28.500
With the very right here.

01:28.540 --> 01:30.860
I will put that right over here.

01:33.660 --> 01:36.260
So, um.

01:39.220 --> 01:40.140
After us.

01:41.740 --> 01:42.500
After us.

01:42.540 --> 01:44.100
Let me move a little bit.

01:44.780 --> 01:46.500
Right here is the controller.

01:46.500 --> 01:48.220
We have a file on method.

01:48.620 --> 01:49.140
Right.

01:50.180 --> 01:57.380
We need to put the query query string Q over here.

01:59.700 --> 02:06.140
And very string I would directly look over here both.

02:06.180 --> 02:11.200
Plus we use To go straight.

02:11.720 --> 02:12.280
Okay.

02:12.760 --> 02:21.320
And right here we need to add a little bit of chat hip to assist what we need to do if we have a queue

02:21.720 --> 02:27.440
where we screen over here, it means we want to share that right.

02:28.160 --> 02:32.440
So in the very right here how I can show that.

02:33.160 --> 02:34.440
Let me show you.

02:35.960 --> 02:45.600
In order to show us by the email or username we want to do something like that.

02:46.280 --> 02:48.520
Let let me help up.

02:52.160 --> 02:55.600
Let me have up a bash script over here.

02:56.680 --> 03:00.200
We can use the Or operator.

03:00.840 --> 03:01.240
Okay.

03:01.280 --> 03:08.440
And in the Or operator we can put the possible I in here we can put the object.

03:08.480 --> 03:09.000
Okay.

03:10.520 --> 03:13.000
The first object we can search by name.

03:14.180 --> 03:16.780
And the second object we can search by email.

03:17.740 --> 03:18.180
Okay.

03:18.180 --> 03:20.180
And right here we can move a little bit up.

03:20.300 --> 03:20.580
Uh.

03:24.260 --> 03:24.660
Uh.

03:26.740 --> 03:28.220
New regress.

03:28.820 --> 03:35.580
Or we can filter by using regular expression.

03:37.460 --> 03:40.780
Uh, like I guess.

03:43.140 --> 03:44.900
Go pro here.

03:44.900 --> 03:47.980
We can put one more object to be regress.

03:48.380 --> 03:48.900
Okay.

03:49.460 --> 03:58.780
The request request right here we can go to queue and we will what the option will be I okay.

03:59.020 --> 04:04.540
This will allow we can shop by lowercase okay.

04:04.580 --> 04:09.820
We will disable the lowercase or uppercase in this case.

04:10.340 --> 04:19.430
And the request right here we will shut by regular expression for example like run Shown from last.

04:19.910 --> 04:20.310
Okay.

04:20.350 --> 04:30.830
If this is the name of the user, if I would show over here as well one, it will find the song Thomas

04:30.830 --> 04:31.310
over here.

04:31.310 --> 04:31.750
Right.

04:32.070 --> 04:34.510
So for that reason I will need to use the request.

04:35.230 --> 04:37.510
And we need to work exactly the same over here.

04:38.230 --> 04:38.710
Right.

04:40.190 --> 04:40.750
Okay.

04:41.670 --> 04:48.550
And, uh, so that is what we need to move.

04:49.870 --> 04:52.750
I will pick it up directly over here.

04:52.750 --> 04:54.470
I will check a little bit.

04:56.710 --> 05:03.230
I will move over here and I will call the very not let us.

05:07.550 --> 05:09.430
Equal okay.

05:13.990 --> 05:16.870
And I will work directly the query over here.

05:17.430 --> 05:17.910
Okay.

05:17.950 --> 05:27.970
If we have a very string We will add that this is the very object and we will update this audio here.

05:30.570 --> 05:32.490
Now let me show you how it works.

05:36.130 --> 05:36.690
Over here.

05:36.690 --> 05:38.490
Let me get on users.

05:41.450 --> 05:42.370
Over his work.

05:42.370 --> 05:42.770
Right.

05:43.850 --> 05:44.930
Right here.

05:46.450 --> 05:50.610
Uh, let me rename a little bit the user.

05:57.530 --> 06:02.210
Let me rename the last one into, uh, format.

06:08.530 --> 06:09.050
Right here.

06:09.050 --> 06:14.010
If I shot for kill zone.

06:16.250 --> 06:19.010
Let's say we, uh, we got an internal server error.

06:19.650 --> 06:20.690
Let me double check.

06:27.070 --> 06:30.750
Uh, right, here is your options.

06:30.990 --> 06:31.470
Okay.

06:37.510 --> 06:38.470
Let me say it again.

06:41.470 --> 06:44.150
Now you will say right here.

06:44.350 --> 06:49.150
Uh, we still find the trauma, the reason, the trauma.

06:49.150 --> 06:54.870
Because the email right here is also matched with this guy, right?

06:55.550 --> 07:03.470
So whatever you find out, you can say we already got the Thomas.

07:03.710 --> 07:04.230
Okay.

07:04.670 --> 07:10.390
So in here we can always chain email.

07:13.830 --> 07:14.590
So we have that.

07:18.190 --> 07:24.190
And if I search for John again now you'll see right here.

07:24.190 --> 07:28.590
We already got the John account.

07:29.710 --> 07:31.670
So that is done for the video.

07:31.710 --> 07:32.270
I will see you.
