1
00:00:00,150 --> 00:00:01,800
Hello, friend, welcome back.

2
00:00:01,980 --> 00:00:07,680
In a previous video, we have created two of dysfunction, one is for our like others for our INLIKE.

3
00:00:07,680 --> 00:00:08,000
Right.

4
00:00:08,220 --> 00:00:13,530
So now I want to do I want to create some of the what that means in our blog into the blog.

5
00:00:13,530 --> 00:00:15,020
That is what you are seeing today.

6
00:00:15,030 --> 00:00:15,860
You are an area.

7
00:00:15,870 --> 00:00:17,490
I want to create two of this.

8
00:00:17,490 --> 00:00:23,670
You are all better here, but I just copy it, OK?

9
00:00:24,420 --> 00:00:33,930
I copied and pasted so and also we need the two I want will be a name of the pop as a name, as a like

10
00:00:35,100 --> 00:00:36,600
OK, you should be as a light.

11
00:00:36,810 --> 00:00:41,660
And also after that like here I have passed one of the other parameter as a speaker.

12
00:00:41,670 --> 00:00:42,840
That is our primary key.

13
00:00:42,840 --> 00:00:43,160
Right.

14
00:00:43,170 --> 00:00:45,210
So here also you have to do have to pass it.

15
00:00:45,670 --> 00:00:48,360
So now I want to do undeposited, our primary key.

16
00:00:48,730 --> 00:00:53,850
OK, so make sure you added and then our into the View area.

17
00:00:53,850 --> 00:00:59,670
I have created one of the function, our function name as a like I name it as a like.

18
00:00:59,670 --> 00:01:07,220
And also it should be as a like underscore post, OK, I name it as a like post and also I want to do

19
00:01:07,230 --> 00:01:08,500
another take another one.

20
00:01:08,880 --> 00:01:17,910
Sorry, it will be actually here that was like and I name it as like post and also also be as in our

21
00:01:17,910 --> 00:01:18,450
picture.

22
00:01:19,050 --> 00:01:21,930
I copy it and it will be as a picture.

23
00:01:22,170 --> 00:01:24,690
So that will be our like adding to the view area.

24
00:01:24,690 --> 00:01:29,100
I have created that like one of the function and then I name it as like post.

25
00:01:29,340 --> 00:01:31,920
And also I have to do the another one for the unlike.

26
00:01:31,920 --> 00:01:36,120
So it will be as unlike OK to be as unliked.

27
00:01:36,360 --> 00:01:39,750
And then also from here we have to pass the picture.

28
00:01:39,750 --> 00:01:41,100
That means the primary key.

29
00:01:41,130 --> 00:01:46,410
If you go to a view that is our I like here, I have also passed that our primary care is a picture.

30
00:01:46,410 --> 00:01:46,710
Right.

31
00:01:47,100 --> 00:01:52,530
So it will be in our view, I have created on a function as I like see to the view.

32
00:01:52,530 --> 00:01:54,720
I have created that function name as unlike.

33
00:01:54,720 --> 00:01:55,020
Right.

34
00:01:55,320 --> 00:01:57,210
So now it shall be as I liked.

35
00:01:57,750 --> 00:01:59,850
You should be the unliked post.

36
00:01:59,970 --> 00:02:02,640
OK, that will be our this Puttnam.

37
00:02:03,030 --> 00:02:07,140
So here, as I told you friend here, it should be visible only one.

38
00:02:07,140 --> 00:02:10,140
That means one you should be as alike then it should be as a down.

39
00:02:10,140 --> 00:02:12,390
That means thumbs down one or should better thumbs down.

40
00:02:12,390 --> 00:02:17,370
Then until we have the thumbs up here we have to do we have to also update our blog details.

41
00:02:17,370 --> 00:02:24,780
That means I have already created one of the function, in our view into The View here.

42
00:02:25,050 --> 00:02:26,250
That is our blog details.

43
00:02:26,250 --> 00:02:26,490
Right.

44
00:02:26,490 --> 00:02:27,870
So you do the blog, the area.

45
00:02:27,870 --> 00:02:32,310
We have to pass that information that the user is already lt is true or false.

46
00:02:32,310 --> 00:02:32,610
Right.

47
00:02:32,610 --> 00:02:35,820
So here also you have to pass it so better.

48
00:02:36,930 --> 00:02:38,160
That is our common form.

49
00:02:38,160 --> 00:02:43,890
And after that coming from look after that going from I take another variable, I name it as it already

50
00:02:43,890 --> 00:02:50,730
liked and then we are like sorry, with the likes model and we just like model.

51
00:02:50,730 --> 00:02:55,230
I want to get all that our life's object and object on the filtrate.

52
00:02:56,100 --> 00:02:59,640
So I want to filter so that just like same you should be.

53
00:02:59,840 --> 00:03:01,170
Check out our blog.

54
00:03:01,560 --> 00:03:02,220
Our blog.

55
00:03:02,220 --> 00:03:03,380
Is that appropriate.

56
00:03:03,390 --> 00:03:04,620
Same block or not.

57
00:03:05,400 --> 00:03:06,060
Or not.

58
00:03:06,060 --> 00:03:08,910
And also so we check our users to our round.

59
00:03:08,910 --> 00:03:10,960
This user will be our current users.

60
00:03:10,960 --> 00:03:14,160
So for the current user, I have already declared that part.

61
00:03:14,570 --> 00:03:17,070
The current user will be our requested user.

62
00:03:17,070 --> 00:03:17,400
Right?

63
00:03:17,400 --> 00:03:24,630
So we will be as a request and then our request user perfect and no one to do and to put on the condition

64
00:03:24,630 --> 00:03:32,970
if if our D already left is already like this, already like is true, OK, that means if this is like

65
00:03:32,970 --> 00:03:40,620
a name, one of the variable as I liked and here I make that as a true OK, I make that as a true and

66
00:03:40,620 --> 00:03:41,190
else.

67
00:03:41,850 --> 00:03:50,300
And also after that, after that I make that as this condition area as ls ls is to be able to.

68
00:03:50,310 --> 00:03:52,280
So we make our disliked.

69
00:03:52,800 --> 00:03:55,170
That means this like I want to make as a false.

70
00:03:56,790 --> 00:04:02,340
So for the reasons here, it should be now displayed only one icon so no one to do and actually pass

71
00:04:02,340 --> 00:04:02,480
it.

72
00:04:02,490 --> 00:04:09,000
I want to pass out this like so here from to this position on the seat, you know, our block details.

73
00:04:09,000 --> 00:04:15,090
That means that is our block details that as HTML Suheir here, I want to pass it after that.

74
00:04:15,090 --> 00:04:18,180
Confirm that is a comment option.

75
00:04:18,180 --> 00:04:25,020
And after that I want to go and also pass out like I simply pass it now we can actually use get that

76
00:04:25,020 --> 00:04:25,640
information.

77
00:04:25,650 --> 00:04:29,000
This is true or false that we like is true or false.

78
00:04:29,280 --> 00:04:34,920
So now with this we can access our dislike in our blog, details that piece in a blog, Little Space.

79
00:04:35,250 --> 00:04:38,640
For now, go to our blog details and read the blog details here.

80
00:04:38,640 --> 00:04:42,060
I have already added to this icon.

81
00:04:42,060 --> 00:04:43,950
One is the word Tombak on another.

82
00:04:43,950 --> 00:04:44,940
It does come down.

83
00:04:44,970 --> 00:04:47,650
So I want to do want to put one of the conditions.

84
00:04:47,650 --> 00:04:56,820
So in particular that area on to put on the if condition, if and if not our I from here I pass our

85
00:04:56,820 --> 00:04:59,720
both of these I paths that our liked rights even.

86
00:04:59,830 --> 00:05:06,100
These I show you that everything will be more clear to you, if not light, then it shall be display

87
00:05:06,100 --> 00:05:10,240
our this part, OK, that means you should be able display this part and else.

88
00:05:11,050 --> 00:05:17,790
And I want to do want to add another ls ls is Silvy display are this part.

89
00:05:18,430 --> 00:05:21,110
And after that also we have to do we have to finish it.

90
00:05:21,130 --> 00:05:23,680
That means we have to finish our and the condition.

91
00:05:24,190 --> 00:05:24,400
Right.

92
00:05:25,000 --> 00:05:26,710
So no one to interpret our you.

93
00:05:26,980 --> 00:05:29,570
That means here have already created two of the seawall.

94
00:05:29,590 --> 00:05:31,240
So now I want to update it.

95
00:05:31,840 --> 00:05:39,130
So that will be our water and that you are an area so that you are area I want to do if we go to our

96
00:05:39,150 --> 00:05:39,760
URL.

97
00:05:39,760 --> 00:05:41,230
So we with our blog.

98
00:05:41,650 --> 00:05:44,490
So we our block.

99
00:05:44,540 --> 00:05:49,980
So with this I blog, I want to do on Texas our like post.

100
00:05:50,410 --> 00:05:52,870
That means this user is already liked it.

101
00:05:53,080 --> 00:05:57,250
So that is all like post I copied and here I passed it.

102
00:05:57,280 --> 00:05:58,870
OK, sorry.

103
00:05:59,050 --> 00:06:03,900
Here after this here we have to do have to post it so that it will be our equal.

104
00:06:04,090 --> 00:06:08,530
And also you can see into the are area and they have also not the picture.

105
00:06:08,550 --> 00:06:11,980
That means that one of the ideas also you have to do we have to declare it.

106
00:06:12,490 --> 00:06:14,720
That means aspecific our block idee.

107
00:06:15,220 --> 00:06:21,240
So now after that, I want to turn to our variable as a picture and now for this block.

108
00:06:21,940 --> 00:06:27,270
So for this block, I get all the data you can I get all the data with this block because of all.

109
00:06:27,280 --> 00:06:32,740
If you go to our view, also in our blog details here, I pass all the tower, block that out with this

110
00:06:32,740 --> 00:06:34,720
block right into the dictionary.

111
00:06:34,720 --> 00:06:35,730
I have it.

112
00:06:36,010 --> 00:06:38,470
So now with this block, we have to display it.

113
00:06:38,890 --> 00:06:42,570
That means here there are pictures.

114
00:06:42,570 --> 00:06:45,630
So if you want to access our database, fill it.

115
00:06:45,650 --> 00:06:50,490
That means our primary case with this block to do and to access our primary key.

116
00:06:51,220 --> 00:06:53,680
OK, friend, I hope is very much clear to you.

117
00:06:53,980 --> 00:06:59,200
So that is our picture because of if you go to our you are I have already declared on the picture the

118
00:06:59,200 --> 00:06:59,910
primary key.

119
00:06:59,940 --> 00:07:02,560
So right now I take it with the same name.

120
00:07:02,560 --> 00:07:08,890
And then with this block, I want to access our block table, one of the default feel as if I feel that

121
00:07:08,890 --> 00:07:09,910
means our primary key.

122
00:07:09,940 --> 00:07:13,010
So now I want to access it and also to do the same thing.

123
00:07:13,010 --> 00:07:17,380
So better I copy down to do the same things for our down for the down.

124
00:07:17,380 --> 00:07:24,550
I want to want to use our another liberal in with our blog, a blog entry to access our this one.

125
00:07:24,550 --> 00:07:31,360
That means that unlike post so that will be our like post and that will be our unlike post and then

126
00:07:31,360 --> 00:07:36,910
our idea will be the same RPK and with this block and access our pick it up in the primary key.

127
00:07:37,360 --> 00:07:37,930
Perfect.

128
00:07:38,170 --> 00:07:39,540
Now let's check this out.

129
00:07:39,550 --> 00:07:44,230
If you click on the save all that stuff along to check our server.

130
00:07:46,970 --> 00:07:52,700
Yeah, you can see our server is not totally running, so now I want to check it like here, not only

131
00:07:52,700 --> 00:07:53,960
if you click refresh.

132
00:07:55,860 --> 00:08:01,380
Yes, now is different now it's actually showing one and now that is I'm not like it.

133
00:08:01,710 --> 00:08:08,400
So that means this post I want to like like if you want to like it, because a click and now here showing

134
00:08:08,430 --> 00:08:12,760
Arrow, that is the name or names like is not defined.

135
00:08:12,810 --> 00:08:13,180
OK.

136
00:08:13,200 --> 00:08:16,350
So here is the return.

137
00:08:16,350 --> 00:08:17,400
There is a blog.

138
00:08:17,400 --> 00:08:19,290
I found that our flag.

139
00:08:20,250 --> 00:08:29,310
Uh, now, if you go to again, that is our view into the view space, so the view area, I have passed

140
00:08:29,440 --> 00:08:34,970
our blog details and the is key and there will be others like my friend here.

141
00:08:34,980 --> 00:08:40,110
One thinks you can see I declared our light with our one of the perimeter as a picture.

142
00:08:40,150 --> 00:08:40,430
Right.

143
00:08:40,440 --> 00:08:42,120
That means that is actually our piqué.

144
00:08:42,150 --> 00:08:43,740
Primerica will be Matute out.

145
00:08:43,740 --> 00:08:50,460
This requested by Maliki and we decided block I take that things from all that object and I take the

146
00:08:50,460 --> 00:08:51,570
things with this blog.

147
00:08:51,570 --> 00:08:51,820
Right.

148
00:08:51,850 --> 00:08:54,900
So this will be our ID.

149
00:08:54,940 --> 00:08:57,630
We decide do we have to declare our slack.

150
00:08:57,790 --> 00:09:04,320
That means here you have to do have to pass that block with this block you have to do we have to declare

151
00:09:04,320 --> 00:09:05,790
that our flag right.

152
00:09:05,790 --> 00:09:11,970
Because of for this block that have some the specific ID and we decided to get all that our block object

153
00:09:11,970 --> 00:09:12,380
data.

154
00:09:12,840 --> 00:09:15,240
So for the reasons here, we have to do, we have to pass it.

155
00:09:15,990 --> 00:09:18,430
So that is actually the hour, hour or so.

156
00:09:18,450 --> 00:09:20,100
Also here we have to do the same.

157
00:09:20,370 --> 00:09:22,710
We have to pass our blocks with this block.

158
00:09:22,710 --> 00:09:24,510
We have to pass our dislike.

159
00:09:24,510 --> 00:09:24,860
Right.

160
00:09:25,440 --> 00:09:26,780
So now let's check this out.

161
00:09:26,790 --> 00:09:35,790
Now, if you click the save all on the check it again, everything's running well now if you refresh

162
00:09:35,790 --> 00:09:36,060
it.

163
00:09:36,240 --> 00:09:38,880
Yes, you can see it's not perfectly updated.

164
00:09:39,060 --> 00:09:43,170
And here friend is also updated our down right now.

165
00:09:43,170 --> 00:09:47,040
Before that was actually thumbs up and now this is still showing as it comes down.

166
00:09:47,490 --> 00:09:50,800
So, friend, I hope you can understand that concept because of all that.

167
00:09:50,800 --> 00:09:55,350
I have also the idea and this idea get all that block object that I take.

168
00:09:55,350 --> 00:10:01,560
The things with this variable, the now into the slag area, I pass it, I pass out this block idea

169
00:10:01,560 --> 00:10:02,050
also.

170
00:10:02,140 --> 00:10:04,580
OK, so now it's not perfectly working.

171
00:10:04,590 --> 00:10:10,920
So now if you want to like it, then automatically it'll be updated as a inlike and if you want to unlock

172
00:10:10,920 --> 00:10:17,430
it then our previous data will be elected and then you can see back become as a like option.

173
00:10:17,650 --> 00:10:25,190
So right now from here you can like this post, you can like this post or you can like this post, OK?

174
00:10:25,200 --> 00:10:31,330
And if you go to a home, if you go over this and then of course also every four hour, every block

175
00:10:31,330 --> 00:10:33,180
post, that is actually dynamic.

176
00:10:33,450 --> 00:10:40,140
So now for our every post we can use it if you want to like it is be like if you want to like it then

177
00:10:40,140 --> 00:10:41,730
or something like perfect.

178
00:10:42,360 --> 00:10:48,620
And also here, if you want to view the count, that means how many people like this post and how many.

179
00:10:49,030 --> 00:10:55,650
Also here I read the comments, how many people actually put that comment with specific to a specific

180
00:10:55,650 --> 00:10:56,580
D blog post.

181
00:10:56,580 --> 00:11:00,480
If you want to disable discount, you can visibly, very easily.

182
00:11:00,520 --> 00:11:07,920
So right now I don't the visibility in our little space now go to our details that with our blog details

183
00:11:08,400 --> 00:11:12,260
and at the blog details after this.

184
00:11:12,270 --> 00:11:20,910
OK, after this, I want to do and displayed so here and take one of the stack and there six here do

185
00:11:20,910 --> 00:11:25,880
and the visible and the visible lead with our that is our blog details.

186
00:11:25,890 --> 00:11:31,920
I have already passed all that information from our view, from the view I have posted as a blog.

187
00:11:31,920 --> 00:11:32,180
Right.

188
00:11:32,190 --> 00:11:34,520
So now with this blog, we can actually access it.

189
00:11:34,860 --> 00:11:38,160
So now with this blog, I want to access our relationship.

190
00:11:38,430 --> 00:11:46,350
That means if you go to our model into the model area for the like for the like, I have already declared

191
00:11:46,350 --> 00:11:50,790
it because I have already declared as a blog that means the like blog distillation name.

192
00:11:51,060 --> 00:11:57,570
So with this blog, I have already created that relation with our Franchi, with this foreign relation,

193
00:11:57,570 --> 00:11:58,810
with the blog.

194
00:11:58,830 --> 00:11:59,120
Right.

195
00:11:59,370 --> 00:12:00,000
With our blog.

196
00:12:00,000 --> 00:12:02,950
Plus now we can actually access it with our deselected name.

197
00:12:03,360 --> 00:12:09,540
So now with this, I want to count how many people actually like this post that this blog post.

198
00:12:09,930 --> 00:12:15,420
So now with this blog and access are like blog and then I want to do and access our account.

199
00:12:17,280 --> 00:12:25,800
So to be as a account and then it be as a like, OK, we display the like and also better and put on

200
00:12:25,800 --> 00:12:30,270
the pipeline and also and want to show our same as a comment.

201
00:12:30,570 --> 00:12:34,140
So with this blog I want to access for our comment.

202
00:12:34,140 --> 00:12:36,240
I have already declared another religion.

203
00:12:36,660 --> 00:12:40,380
You can see I have already cleared the relation it shall be as a blog comment.

204
00:12:40,380 --> 00:12:44,830
So I have already created that election in our comment class with our blog.

205
00:12:45,180 --> 00:12:48,180
So now we can actually use our deselected them for the results.

206
00:12:48,210 --> 00:12:50,450
Actually, I have created this related name.

207
00:12:50,460 --> 00:12:58,740
I copy it and now go to our blog and here with this blog on Texas, our blog comment, and then I want

208
00:12:58,740 --> 00:13:00,420
to learn to show that count.

209
00:13:01,110 --> 00:13:02,580
So shall we show that count?

210
00:13:02,720 --> 00:13:04,950
OK, it shall be as a comment.

211
00:13:06,630 --> 00:13:08,440
Shall we display our common count?

212
00:13:08,690 --> 00:13:09,800
Now, let's check this out.

213
00:13:09,810 --> 00:13:11,160
If you look at the Savol.

214
00:13:12,100 --> 00:13:17,400
I want to update it because I say, well, first of all, I to check it better.

215
00:13:19,290 --> 00:13:25,670
And to check it, everything is running well and now to do and to update it, please refresh.

216
00:13:25,830 --> 00:13:31,400
Yes, you can see friend is now showing us a zero likes and the two comments, that means I can see

217
00:13:31,440 --> 00:13:33,900
for these blog posts that have the two comments.

218
00:13:33,900 --> 00:13:40,050
And now if you want to like you can see the suffering of the two comments and also for the likes.

219
00:13:40,610 --> 00:13:41,400
I like them.

220
00:13:41,400 --> 00:13:42,210
I like it.

221
00:13:42,570 --> 00:13:45,630
Yes, you can see suffering as a one likes perfectly.

222
00:13:45,630 --> 00:13:48,930
And if you dislike it, it's becoming a zero.

223
00:13:49,110 --> 00:13:50,760
That means is totally not dynamic.

224
00:13:50,940 --> 00:13:56,360
And also going to update that comment like here, I put another comment because there's some meat.

225
00:13:56,370 --> 00:13:56,790
Yes.

226
00:13:56,790 --> 00:14:01,570
You can see it automatically updated as the three comment is visible under the zero legs.

227
00:14:02,040 --> 00:14:08,210
I want to do and make that as a like a game is one like I hope you can well understand about it.

228
00:14:08,220 --> 00:14:14,040
So for our every post they have that zero like there are two comments you can see for this post that

229
00:14:14,040 --> 00:14:17,190
the two comment, if you like it, then it should be displayed.

230
00:14:17,200 --> 00:14:19,800
The one like if you go to our home.

231
00:14:19,800 --> 00:14:21,240
So that is our home.

232
00:14:21,360 --> 00:14:21,780
Right.

233
00:14:22,290 --> 00:14:29,520
And here, friend, like if you also want to visibly, that means you from the visible lower at this

234
00:14:29,520 --> 00:14:30,720
portion as a one like.

235
00:14:30,720 --> 00:14:36,540
And how many like actually polled for this blog post and how many comment for this post you the visible

236
00:14:36,540 --> 00:14:36,780
lead.

237
00:14:36,790 --> 00:14:38,630
So that is our block list based.

238
00:14:38,640 --> 00:14:38,910
Right.

239
00:14:38,910 --> 00:14:40,380
I want to do want to actually add it.

240
00:14:40,950 --> 00:14:45,720
That is better able to copy it and copy total things from here.

241
00:14:46,260 --> 00:14:48,150
And now go to our blog details.

242
00:14:48,150 --> 00:14:50,910
That is a blog at list in the blog space.

243
00:14:51,840 --> 00:14:58,110
So that is our blog list after this post by OK, after this post by on the Visible.

244
00:14:58,830 --> 00:14:59,730
So that is our blog.

245
00:14:59,730 --> 00:15:07,680
Publish the result blog author and after this to do and visible it, I just simply passed it now should

246
00:15:07,680 --> 00:15:14,130
be visible the same as account for the how many people like this blog post and also how many people

247
00:15:14,130 --> 00:15:15,810
comment this blog post.

248
00:15:16,260 --> 00:15:21,030
No if you click as I save all and now if you refresh it.

249
00:15:21,300 --> 00:15:21,750
Yes.

250
00:15:21,750 --> 00:15:23,370
You can see the perfectly updated.

251
00:15:23,370 --> 00:15:24,330
There is a one like that.

252
00:15:24,330 --> 00:15:25,320
The three comment.

253
00:15:25,800 --> 00:15:31,770
There is a one like a the to comment and there is a zero and a zero comment I hope friend you enjoyed

254
00:15:31,770 --> 00:15:37,170
very much on next video Underdo if you want to from here you can insert the data.

255
00:15:37,170 --> 00:15:37,470
Right.

256
00:15:37,650 --> 00:15:42,840
So now if you want to update that, that means if only did this blog post, how can do that work?

257
00:15:42,840 --> 00:15:46,350
In our next video, I will show that things with the living sample.

258
00:15:46,860 --> 00:15:50,220
So thanks for watching and I will see you in the next video.
