Hello, friend, welcome back.
In a previous video, we successfully completed our Eddied and the update bocian and also I discussed
bothof that way and I can also do that.
Edit an update with using that.
I'll look into autumn.
You can also do that work with using that query builder.
So right now in this video, I want to discuss about this Delek functionality to the functionality here.
I want to do one things like if you go to our project into the project, if you go to our database and
the migration for the categories I have already added.
Want that you can say there is a small dialect, right?
So I have already already solved it.
So with this solved elex, I want to do first of all in this user will delay this even in this category.
So this category will be saved into the trash.
OK, that means here I want to create another position for that view in the trust.
So it will be save all the data in the trash area and after that, as if you are elected, then this
category will be permanently elected.
So how can do that work?
In this video, I will show you that things with a live example.
So for doing this, first of all, we have to understand like here we get all that our data from where
we get all the data from our category controller in the category controller if you go to our old cat.
So that is actually the method.
Right.
And here I get all the other categories, data.
And also I basically did so for the reasons so you can see is now display all the other categories,
data and also the representation.
So now I want to do I want to work in particular that area that means here.
So here I want to do I want to take another variable.
OK, show you here.
I'm using that.
You can't quorum.
That means here I want to add another variable.
So I take another variable.
Whatever he wants right now I take it as it tries get trescott.
So this type of the variable and then I want to do with our category model.
So that means the category right now I'm using that.
And so there is a category models with this category model that have also the function as the only test.
OK, so with this only test we can actually pass test data.
So I made it easy only.
So that is all the building function.
OK, only Trask's.
So with this only trust I want to do, I want to get all that our latest data that should be just like
the same, which will be added just like the latest look at latest data.
And also I want to add that basic so that means the basic need.
And here I use it, they're using as a file.
So for the test, I make it as a three for three years.
We display this designation.
I hope it's very different.
So here I trust this data.
I take one of the variable and with this category model, with this category model, I added I was the
only test and the latest on the product and the phase designation I added are the three.
That results will be displayed at three.
And then I want to do I want to I get all the data and take the things with this variable.
So now here I want to pass it in our index based because into the index based on the visibility.
So I show you everything will be very much clear to your friend.
So before I get all the other categories, latest data and take the things with this variable, I pass
it into that index page.
So now I get all that or Kadugli test data.
That means witchdoctor.
I want to be elected from temporally from here.
So all the test data is to be saved with this, all the trash.
And I gave it with this variable and here I pass it into this I with this compact index base.
So now we have to do have to work in index.
That means if you go to our index.
So that is the index based means.
That is our view admin category in the category.
And there is our index page.
Right.
So here are all categories.
That is our rule.
So better I copy everything, OK, so that is the last day one that ends up being 12.
So here, OK, but I take everything OK, there is a container roll.
I copy everything from here.
I copy everything that is actually lost if I copy it.
OK, I copy it and then.
I want to do that the last one after this I posted on here, OK, I posted.
So that will be your last one.
So that will be your last one, and here I take another one.
Perfect, so that is another one.
Now, if you look at the save all now if you refresh it.
So now he's showing us a call undefined.
You can see it's because of all here, I all have already passed some of the data.
So from that category, until I pass this data right, it's actually start getting this variable for
the reasons it's actually displayed, this message that means this error message.
So here is the alert.
So I don't need this alert.
That is our all catagories.
There is no serial number, so no one to do and actually update this portion.
OK, so here it will be just like that same letter here.
I want to put some of the note for you.
Then you will be helpful to you.
OK, but I name the address Fassbach.
So now I want to make it as a comment out.
So that will be is a trash part.
And then I want to do and to make it not at all category.
OK, so here there is our cardboard.
So I want to make it a list,
first list.
So it'll be just a list and then our serial number will be same, the category will be same user created,
that everything will be the same.
And now after that that is our for each night since the following before I get all the other categories.
That and invisible visibility on here.
So right now we don't actually update it.
I want to update it with our discharge that if we don't act like elected it.
So that's the trash that I want to take so far with this trash can.
And I know I can actually use it in the index page.
Right, because I have already compacted in particular that area.
So now I want to to add it.
That is our compact.
So here I name it as a task card and I just named that as the same name.
Then we don't need to change anything.
So that is a task at as category.
So with this category on the visible, that category name visible, that user name create a date.
So everything will be just like that.
OK, everything will be just like that.
So that is our end for each friend.
Right.
So that is our end for each other after that.
The physical categories.
Right.
So before here we have use that categories right now, use that out this category.
That means that class tag.
So we discussed that.
I want to be able to display our links.
Right.
Because of all here.
I have also passed that latest designation as a three so far.
The results here, I have updated this, our idea that means the variable with this and then the add
category.
So here we don't need this, actually.
OK, here, we don't need this better.
I want to learn to make it as a blank right now.
I only want to take one.
So that is one they've rejected the form that form first.
There is one tape and also there is another Dave and the video card.
If I remove it, I only just take as a call me for.
So that's all.
That's all we have to do.
And better able to make it easy and trust that it'll be as.
I don't want to make it as a comment out, then it'll be helpful to you.
It's perfect, friend, that's all.
OK, that's all we have to do.
Now, let's check this out.
If you look at the sea wall and now if you refresh it.
So that is the app on the latest.
This category controller 22, category controller 22.
What exactly the things they did wrong, that is the 22 category latest.
And then Busiek, Nate.
Basic need here, I can see I actually miss it, so here will be this one, right?
So I miss it.
So there are trash and that latest and then pedicured perfect.
So that was a simple mistake.
So know, if you look at the save all.
Now, if you refresh it, yeah, you can see perfect finta, that's the things I want to do.
You can see the regular category portion and that is our task list.
So here I want to do when you click a the bit from here, OK, then automatically these files that this
category will be displayed in here.
So that is the things I want to do.
And after that, if you want to delete it permanently, then you can delete it from here.
So that is the condition I want to apply.
So if you want to do that work here, we have to do we have to add some of the link.
Right.
So here we have to add some you want.
So now go to our this part that we see in our index.
See the index.
That is our touchpads.
That is our touchpad.
So now we have to work in our disposition.
And here that is our ad message.
And that is our edit and right, so here we have to do we have to add one of the link that we have to
add on you all fast.
So I want to do want to add on the.
So here I want to add butter.
I want to put that in water.
Sorry.
So you water and you all will be able to create on the wall in our webroot.
So here it will be just like and that means this will be just like that.
Same here.
I name it as, like I made it to the soft direct because of the elect Salt Dilek and Kadugli category.
And also here we have to do we have to add our ID.
That means it's just like that same.
So right now we are into the 40 loop.
So into the fall.
That is a category category.
Category ID.
Right, because here we have to also pass it with a specific one of the idea.
So for the reasons you can see here, I use that category ID.
So now I want to also add that category ID on here so I can create it with this concrete result category
ID.
Perfect.
So that is what that means.
When you click in particular this area, it will be rejected to here.
That means that is you are if there is a solid Delek and the category with a specific one of the idea.
So now we have to do we have to create our D.C. model.
Now go to our Web site and by the Web brought here.
OK, so here.
But I copied I copied that method.
I copied and pasted.
OK, so it will be as a dialect that in the solved elect and the category I copied and after that that
should be on the ID.
So now I want to add it as a soft delek and the category and then the ID.
Right.
And also into the category controller here.
I want to add on the method as a soft sort of dialect.
OK, so this type up, one of the method I want to create into the category contour, I hope is very
much clear to you what exactly the things I did on here, Ridvan.
So now let's do that work.
I want to create this method in our category controller code to category controller.
And after this, that is the last one.
So here I want to do and create another one.
So I named it as a public public and then function.
And then our method name will be as a sort of Dilek.
So here there is a solved elect soon to the solved.
I want to do undertake one of the variables idiolect.
I take on the variable as a Dilek and with this category model I want to use that and you can call him.
I can definitely look at what bottom so that it will be the category with this category.
Model I want to I have already is because of all the things we you that you find, find out a specific
idea.
And also here we have to do we have to add that idea.
You can see that have also had the idea.
So now I want to do want to add this idea in particular, that area that will be requested.
So here is will we find this out, this idea?
Right.
So now I have to do and add this idea is we find it if we find this idea, then it should be elected
because I name it as a dialect.
OK, so here I add this as a dialect.
Perfect.
And after that I want to turn to return redirect to the base that means and return to the same base.
That means our back base.
OK, so to add it to still be better, I don't it the return and redirect, redirect and redirect them
the back base.
So that will be as a back base and the back page with some of the message.
So name it as a weed and then I want to add all the ideas of success.
OK, I name it as success and success message will be visible whatever you want.
So I make it as a category deflected, OK, or deflect successfully
or solve this successfully.
OK, I mean we've got a soft sub successfully.
So this step up one of the messages to display in the back base with this message redirect.
So that is a return.
Perfect.
So now here, make sure you add that column that the semicolon residential.
We get some of the arrow.
So here I hope you can well understand about it.
Fencerow into the index.
Into the index.
That is our direct.
So here, when you click it, it's rejected or you are with our D part with a specific quantity.
So that is our you are L at a soft category with a specific died and then it's be rejected to our category
Condola and into the category Condola.
I declare one of the methode and of direct method that means into the category controller and that is
also the method.
And here it should be also added as our EBE with this specific idea I have to do, I have to delete
it.
I take one of the variable as it a left and then.
In our Calgary model with this Cadabra model, I find a specific one of the idea and this idea, you
can see I make it as a tool again, so well-defined so that in the category and find and this I, I
find this idea it will be the elected official with elected from here and then who to be reelected.
It's written direct to the back page with some of the success message as a category of Delek successfully.
So now let's check this out.
If you're not looking to save all, I click and save all.
And now the freshet.
So here we need somebody like you to be safe in our DHS area.
Now, let's check this out.
Is working or not the result ghazarian one click is a direct.
You can see not showing the categories of directors successfully, so that is the sort elected is not
permanently elected.
You can see it's now gone from here.
Yes, you can see thrown into the trust list.
Also now it's visible as the audience right.
Is now visible.
Azarian user is visible here.
The time is also visible.
If you like that man's fashion or the latest measurements sufficiently reflect.
And you can see that the categories of Delek successfully and now is now visible on here, that this
category is selected from to this position, but it's now safe in our D.C. area.
So right now I actually make it is the same pace for the reasons you can see.
It's not showing at the same pace rather than you can also reject it to another base.
So that's all you have to do.
So right now, if you can if you can the elected right, that means from here you can elect better.
I want to do I want to add another Mr button.
OK, that at this it to be clear, the restore return again to the power at this main category pates
perfect.
So that is very much interactive.
That will be very much interactive for you.
So how can do that work.
How can restore this message that is used to this category and after that how can they like this category
permanently?
You know, next video, I will show you that things with a live example.
So thanks for watching and I will see you in the next video.