Hello, friend.
Welcome back.
In a previous video I have discussed about that, things with you, how can create that relationship
with using that query builder?
And also here I created that relation with the categories and the user.
Right.
So right now here, we don't need this.
So now in this video, I wanted to discuss about that, Ed and that elected option.
So first of all, I want to complete that edit and update position.
And I want to do that work with using that.
Look into what?
And then I will also discuss about how we can create that edit and update with using that query builder.
Then every concept will be very much geared to you.
So for doing this before I better here, here I'm using that query builder.
Right.
So now I want to make it as a comment out and that is our look into R.M..
So now I open that you're looking into harm's way.
When you open that, you look in one them.
And also here we have to update before I have already put some of the load.
So you can see now that is open.
Right.
So now our everything is working with using that are looking at what if I save all?
And now if you refresh it and now this is now gone because of all, I hope you already will understand
what exactly the things you have to do here.
You have to use that method name.
That means that user and then you have to use that name.
Right.
So that is the one name.
So that is the user method I have created in our model.
So that is our user right now.
I open it now if you click the save all and now if you refresh it.
Yeah, everything is still perfectly working.
So that is the resignation.
So now I want to do I want to edit it.
So if you want to add that Dilek then first of all here I want to add another field for adding our two
of these button A-Z and the like button.
So that is in our Alkadiri index page right now.
Open that all category index page.
And here I don't want to add another field and get another filled and I just name it as an action,
so I name it as action.
So for the action I want to add also another TD better I copy it.
So after DTD, after the listed here I post it.
So here we don't need this.
Here I want to do and to load one of the two of this button actually.
So if you want to add two of this button then here I want to do I want to add on the areif, OK, that
in the ahead and the area will be as edit and the editorial also on the boards of the class.
So on the put on the class and class will be as they have the also one of the bootstrap class as a then
I can beat the NBT and full in class I want to use for the edit button.
And also I want to take another one, I want to take another one for the that can be done for the better.
I want to use another class A the meeting between danger.
So maybe there's a bit in-between danger.
So now if you click the save all the save all and now if you refresh it.
Yeah, you can see that the two button is added as eddied and the daylight, so no one wanted to add
a sound like if you want to edit this category, then you have to do we have to add that aspecific this
idea category.
Right.
If you go to a table with a table, you can see for the Seifi, there is actually a specific goal of
Bidi as a one for the card.
That is the specific one of the idea as a seven.
So we have to do we have to update it.
You have to deal with a specific one of the ideas.
So how can I decide this?
I show you if you want to add these ideas right now, we are already in the 40s.
That mean the for loop and the follow up.
We get all the data with these categories and that is our categories.
Right.
So no one to want to, first of all, create on the wall for the edit.
I want to create on the wall.
So that will be as a wall.
That means we have to create that out for this one, actually.
So here I want to do want to add it.
So that will be as a I may meet whatever you want.
So now I name it as a category added category.
Slash it.
So this step up one of the name.
And also after that we have to do we have to add our this idea that we decided.
So that is our filename as I write.
So with these categories, I have already get all that data so we also can access our Busfield as I
default.
So now with this category I want to do before, with this category, I access our category.
Name the name.
Right.
And also the creator that.
So right now, I also want to add another one.
So here after that did look after that.
I want to want to add another one with that piece.
With this category, I want to access our another feel as ID.
So when you access this file, then everything will be very much clear to you.
Like if you click as a Savol and now if you go to your site and now if you refresh it.
And now if you put your kausar here, you can see finished offering us aid, eddied six and also showing
us the five, you need five.
But here I didn't add that slash.
So that is actually the slash.
And here because we have to we have to actually add it inside this wire, this fast bracket.
OK, that means here, here we have to add it.
OK, so that is actually our first bracket since the first bacteria are here after the key category
that will be out until and after that, it will be our idea.
Now let's check this out if you like to save all and now if you'll refresh it again with the culture.
Yes, you can see there is a category eddied and the 8D, there is a 680, there is a 580, and there
is a variety.
So now I want to do on the edit to this specific one.
So here, if you click on the edit, then it will dictate another page and there are these category
name only visible.
OK, so here I want to do that.
Work for doing this supposedly will be very easy just here.
The result you are right.
So we have to do we have to create this model and also that have one of the ideas.
So if you want to create this, you are well, we have to go to our Web site.
That means that is actually our way out.
Right.
So that is our category controller before I have already added that, get my thought, post my thoughts
and now I will for the edit.
That will be as a gate.
So here I want to do and paste it.
OK, so here I don't need this name.
I removed that name.
OK, so here we don't need this name here.
I want to turn to we're using that our you sorry, what will be category edit.
So I copy it and now you know where broad I name it as a category it.
OK, so that will be as a category.
And after that category they have also one of the ideas right here.
Also we have to do we have to add this idea with the third bracket and here we have to add this idea.
So this idea means and that is our model.
So that is all you are.
And after that, you already have one idea.
So for the reasons here we have to do we have to added that in the category.
And after that category, there have that one of the ideas.
Right.
We have to update it with the specific didley and then our controller name.
So that is our controller.
Right.
And we are using the category controller and with the category controller, I want to create one the
method I name it as edit.
OK, so that means that it did matter.
So now we have to do we have to create this edit method in our this category controller right now,
go to our category controller.
That means there is a controller and the controller center, the category controller after this.
OK, so here I have already this because of all the things we do.
So after this here.
So that is our last one.
So here OK, so here I want to want to add one of the functions of the public and then function and
then our method name will be as edit.
So now I add that it and also into the edit area here you can see we have to do we have to add this
idea.
They have also unabiding because we have to edit it with a specific one of the.
So now I copy it.
So here we have to do we have to add this idea.
So now I want to take this hour.
This requested it.
Right.
And after this, if you use that look warrant, then you have to do I take one of the variable and I
just name it as a category.
OK, name it as a category or whatever you want.
So now if you use that, you look into what we have to use that our model as a category model, that
is our category model.
So with this category model I want to do to find, then you have to add that find.
That means there is find find our idea.
OK, so here we have to do we have to add our this idea.
So that means this idea perfect.
So if you use that I can we look at what and then you have to actually do that work.
So now I want to do I want to give that a specific one sided data.
Right.
That means here I gave a specific one idea that or the whole idea that a specific one of the ideas that
I get and I take the things with this variable.
So now I have to do and to pass it.
I want to pass it with the specifics of the piece, because here I want to visible it.
Right.
So if you want to pass it, what exactly you have to do, you have to have the return.
And then you remember into the written view here, I want to create one of the few pages.
So if you want to create that view page that was in our category folder here, I want to create one
of the new file I can create on the new file, and I name it as you did it.
Dot Blade, Blade Dot PSP.
Right.
So I want to create on the base as an editor played that piece of that is in our view admin folder.
That is category folder and there is no edit to no one to do.
I want to add that link.
That means that will be an admin folder and then the category folder category folder and then the edit
our base name.
Right.
Or page them as edit.
And here I want to go on to compacted.
So on the compact and compact our whose data I want to compact our.
I get already a specific one of the idea that I can take the things with this variable.
Now I pass that on a specific one I read about in our edit base.
Right.
For the reasons here I simply compact it so often.
That's all you have to do.
So now we have to do.
We have to work in our decided base.
OK, so now open that or edit page.
That means there is already base better from our index, OK, from the admin category index.
But I copy everything from here and now.
Edit I passed it.
So here we don't need to be here.
Actually I need this part, not this part so that I want to do and to delete it.
OK, so that is our edit portion into the edit portion.
That is our call eight.
So that is our colleague and also after that, there is our call for someone to do and to actually remove
everything and remove everything from here, and that is our call eight.
So that is our call it.
We don't need this.
So after the draw that is acknowledged, I just simply copy everything and remove it.
OK, I take only that called for and I make them make it, as they call it right now, so that to me,
as I call it, perfect.
So now I want to do and update it as a edit.
OK, that means that will be our edit category page and also it will be on the edit category.
Sorry.
You'd still be in the edit category, and that is our idiot category.
OK, that will be elite category.
And then here we have to also adopt the euro so that now better.
I mean, we didn't get Asian issues on the ATL and then the resources are there.
So, first of all, I want to do to totally display our specific data that I actually get it and take
the things with this variable.
So here I want to do it fast.
So that is our level level will be as a category name.
So it's OK.
All right.
Then you can also make it as an update category better the update category.
I mean, it should be displayed as an updated category name.
Our field name will be just like that, same as a category names or category name will be visible here
only I want to do and to visible our specific data.
So if you want the visibility, you can visibility with using that value.
OK, so we want to reduce that value.
So there is a value.
And if the value area I want to do I want to display our these data, that means a specific one that
I already posted in our edit base with these categories.
Right.
So now I want to do and actually add these categories.
That means here it will be as a category.
So now I want to do with this dollar that will be the categories and the categories area.
And then to display our Phelim, our database will name if you go our database filename as a category
name.
Right from this category name.
I want to visible from the visible here.
We have to be able to add this category name.
That means that will be as a category category underscore name I hope is very much clear to friends.
So into the value area it will be visible.
OK, and then it should be just like the same.
That is a form validation of the ADD category.
So now to make it as a category, that will be a separate category.
So now first of all, I want visibility.
OK, so that's all.
Now let's check this out.
If you click the save all likelihood, the same will now go outside.
And here I refresh it.
So now if you put your counsel, you can see from there exactly Ed and the Ed Noncyclical Ed it, yes,
you can see snow predicted to each category.
Ed specific Ed as Ed and also into the value area is visible.
Our Ts name.
Right.
That is our fill category name I it with using that value.
So for the reasons you can see our value that is visible.
So that is our value data.
OK.
So here I use that value and that is the categories.
I get a specific idea that that is a specific one data and here I display our list.
I'd name the for the reasons you can see, it's not visible our list name.
So if you go to all categories again and there is a man's fashion, click on the edit.
Yeah, you consistently edit 580 data and that is our men's fashion perfect.
So here we successfully get our specific IRI data.
So now we have to do we have to update it.
So if you want to update it, then we have to do we have to add some of the action for this on.
Right.
So if you want to add detection, that means in our eddied and here you can see there is a killer form
so that the form area I want to do I want to add one of the wattle then.
So that means when you click the update category, it will be added this section and also it will be
as a post.
Right.
So Methode will be as opposed to now and want to add one of the URL that means that will be as you are.
OK, sorry you are ill and that you are.
Laria will be added better here.
Here I want to do want to add on the name whatever you want to now name it as a category update.
Category slash update.
OK, and also here, one thing we have to also updated with a specific one, the idea that is actually
the 580.
So that is like a specific one applied.
If you go to that another one and the one that is a date is so that we have to object to the specific
one of the idee data that means category.
So here also we have to do we have to add this our category.
So after this.
OK, so after this I get all the data that is a specific date.
I get it with these categories.
So now with these categories here, you can say that we edit in the edit.
So here we can actually use that categories.
So now with these categories, with these categories, I don't want to access our filename.
That means category will feel them as ID.
So this idea means that is our category field and the category field and that is actually our idea.
OK, so here we have to add it.
That means right now will be updated with a specific one of the idea.
So if you want to do that works right now, we have to do we have to create this.
You are right.
That is a category that you are.
So now go to our web node.
So, friend, if you understand this procedure, then everything will be very clear to you.
OK, so now you can see that is actually the method for method now, which will be as a post method.
Right.
And also our you are a little bit this one.
And after that you all that have also of the idea is pretty simple.
So here I wanted one to make that method will be as opposed cos here I want to update this data like
that and this data will be updated and after that and that will be out until there is a category update
and after that category update that one of the ideas.
So that will be as ID.
Right.
So because of all of that, that there is actually the idea.
So now after that, there is a category controller in the category controller.
I don't want to create one of the method.
I just named that method as update.
OK.
That means the update method.
So now we have to do we have to create this update method in our category controller.
So now go to our category controller into the category controller.
So friend here, I'm using that all looking toward him.
OK, so I will also show you how can working with this CareerBuilder.
So now I'm going to create another function as an oblique and then function and then our method name
will be as an object.
So I update it.
And when you update, they have the two things I have already discussed about the things we do there
that we have to at the request.
Right.
That was request and the request.
That means the delivery because this request means whatever the request I pass from all this input field.
OK, so from the input feel is the category name.
So here I pass that filename.
So here we have to do we have to add this request.
And after that I also have the want the idea.
Right, because they have also died.
So we have to do we have to also add this idea.
That means year after that, we have to add this out.
This is idea.
So I just simply had that idea.
OK, so that is a good idea.
Means you can see there is a clear distinguish strategy.
So that is actually the idea.
So now here we have we added and after that, if you use that, you look into M, then I show you like
I take one of the variable as I did.
Or whatever he wants right now, you name it, as an update, and then with our CATAGORIES model, OK,
that is with our category model, I have to do we have to add that find and find with our specific ideas.
Right.
So here we have to do have to add that our specifically our specific items are these are specific ideas
that exist today.
So we have to do we have to add it.
And then I want to update this data.
So here we have to add as a update, I name it as an update.
Perfect.
So that's all.
And after that, I want to go on to add our feeling that piece, which will be that I want to update.
Right.
So here we have to add this filename.
So after this after this, I want to add our filename, our filename as this one.
This one I want to update.
Right.
That is a clear category name.
So naming this category name and category name will be our requested category names or requested category
means.
And that is actually what this request.
OK, with this historic category is this one that in this category name.
So now I want to do and to pass it.
OK, so that means whatever the requested, a lot of the data I pass from here, that is the input field.
That means if you go here, whatever the that I will update from here, that will be our request.
OK, that means the request data.
So that is the request data.
That means this one is actually our request data and that is our field.
And this category name will be out actually our database and this film.
So he will be updated in particular that area.
Right.
So for the regions here, I updated that part.
And after that also I want to grant update that our user that means user ID, if you want to add.
So I also want to update that user idea.
OK, so user ID, user I.D. will be our same as art.
And we this what I want to use that user I have already because of all the things we do.
So with this user here, we have to add that our ID that will be all right.
OK, so that's all.
So with this now we can actually update our category name and also that is a user ID.
So after that, I want to I want to actually pass out the piece.
If you want to pass it, you should be just like same like just like the I copied OK.
That is when it will be done will still be updated.
I want to show some of the message so it will be redone.
Redirect not the back page.
That means here it will be done directly over this index page.
OK, so that is a the space and with the index pages to be elected.
And after that we also saw some of the message.
So if you want to add that redacted page, that means I have already created one of the round.
So you can also add the crowd.
And Routt will be if you go to our Web site, that means we brought here.
That will be our all category.
Right.
So I have already created that one of the base that means our category.
All that means that our category.
So right now I copy it is to be the to our particular disallowed area.
And without it, we are into the category controller or controller.
I have already declared it.
If you go to our category controller in the category controller, you can see all that here.
It will be loaded on the admin category and of the index, I hope is very much different.
So she will dictate the particular that area.
I wanted to add that our our name will be all categories with some success message and here on the display
as the category updated category updated successfully.
So this is the information that this message will be visible in our all category.
That means our index page and into the index page.
I have also displayed this message.
You can see if this doesn't have any success message, then it should be sure this message perfect.
So that's all you have to do.
So that is our update position and that is our position.
I'm using that.
I'll look into autumn.
So now let's check this out.
If everything okay, it should be work because I save all, OK, I click it to save all.
And now if you refresh it, so now showing so that syntax error as unexpected is OK.
Unexpected.
This is not category controller.
Uh that is our here.
So there are six to seven here.
Here you can say I added that semicolon, this would be actually the comma.
OK, so I understand that that means here in the here because I added that semicolon, which will be
as a comma, actually.
OK, so that is the comma update.
OK, now let's check this out again.
Under the category contract, they have also entered the showing of the arrow consistent swing as one
of the problem.
And now if you look at this table again, now you see it's not perfectly gone.
And now if you refresh it.
Yeah, you can see it's the perfect scenario to the UN, to ablated, I click the edit, I name it Azarian,
OK, name it as the Korean.
And now I want to update this category.
Yes, you can see when you successfully update and after that updated selected to our category all Pei's
and our message is visible as a category updated successfully.
And here you can see also updated.
Perfect.
I hope you can all understand about it, so here I already cleared that part, when it will be updated,
then it should be done during our round as all Kadugli with success message.
So that is success message.
Right.
So it's not going as a success message and also selected our category based.
Perfect.
So if you want to change that, anything that is hello, I make it as a hello on because I bet category
your category are successful and that is actually category perfect.
So we successfully complete our ablate portion with using that look looking him right.
So that is what you're looking at and all that good.
But here, if you want to update it with using that like we have here, you're going to want to update
it if you want to edit it with using that query builder how we can do that.
Working our next video, I will show you that things with a live example.
So thanks for watching and I'll see you in the next video.