Hello, friend.
Welcome back.
In a previous video, we successfully insert data from our category that these input field and here
we use that in looking toward him.
Right.
And also shared both of these way that they look into Warrender, the tools tell you can actually add
you can use these or other than you can use this.
And right now, I don't want to insert the same things.
I want to insert this category with using that query builder.
So as I told your friend, if you use that CareerBuilder here, you don't need to use any model.
That means also you don't need to create any model on particular that area.
So without this, you can also do that work so far.
Now, I want to do want to use the same thing, but I could make it as a comment out.
I want to use it right now as a query builder and with this query, build around, insert this data.
So here you don't need to do anything.
First of all, it will be add that validation and after that validation, I want to do want to add that
as a query builder.
So if you add that I take on the array as the data, OK, data at it and maybe does the array.
OK, so I take this as an added and into this at area.
You can do that work like I show you then with this data.
So with this data you have to do we have to add your full name.
So our database filename as a same, which is the same as a category name, so name ID our filename
as a category name and then our requested field added data.
So with this request it will tell you that I have already discussed about that things with you.
So that will be our requested Fillery data.
So this this one actually our database field, that means this database, this category, Manfield and
this one is our input field.
So from where actually inside this data.
So that is our input field.
Right.
So here so that is our input field.
So into the input field, I may meet our input field as a category name.
So that will be our this category name, I hope is very much clear to friend.
And after that, sorry, there is a column that is a semicolon and after that I want to do want to also
add that our user data.
So here you have to be added to the data and then our filename as a user underscore idy.
That means the user ID and then I have to do I have to use our OT.
That will be just like that same.
But I copied it.
That means the authenticated user idea which user is already logged in this authenticated user idea
to insert.
OK, so here you have to do we have to add it.
So that will be our category inserted and there is our user idea.
And also after that, if you want to insert this data here, if you use that CareerBuilder, you have
to do we have to use that DBI, that the DBI and into the deep area that is the table sorry, the BLT.
OK, which table you want to insert here.
You have to do you have to add that you're disturbing them.
So I have I don't want to insert this our category name and that user ID data in our D category.
That means that is a clear M..
So here you have to do you have to add to bring them all current and then into the table area.
I want to do and insert it say name the insert and insert our this all that added data.
So that is our D data as a data.
So now I have to do I have to add it so far and that's all you have to do.
OK, so that's all you have to do.
And also you use that DB so when you use that DB, make sure you use it, OK.
You can see I didn't add that DB in particular that area.
So if you want to use it, as I told you before, if you go to that Laravel side and here if you go
to that, you look into what that means.
If you go to the database and that is a query builder into the query builder, if you use that DB and
you consider the record.
So now I copy it and now I want to learn to use it on here.
So that is our used eliminate support for search and the DB.
So make sure you add this DB.
OK, so now I added, so you have used the DB and then with this DB there is a table and we still rely
on the inserted and insert that same data and everything will be just like the same.
So you should be insert this data and return, redirect the back page with some of the message and it
should be also displayed this message as a category instead successfully.
OK, so now if you click as a Savol now let's check this out now.
Go back now, refresh it again.
And now I want to add another one as a car, OK, ga category.
So that is a car category because they are category.
Yes.
You can see it's not successful in Saturday's data.
That is a category instead successfully.
If you go to a database, if you click, get the browse.
Yeah, you can see snow also insert another one as a car right before I have a user already.
Insert the mouse.
Hello, and also insulted our user ID, you can see the user I.D. one as a car, but here you can see
how many using the query builder is not will be inserted.
And that created this any date or the object did.
So every format I have already shared with you.
So that is the all format.
So if you want to use that, you're look into them for insert this data, you can use it.
If you want to use that as a query builder, you can use that query builder.
So we the security builder, you can insert this data.
So friend, I hope, is very much clear to you.
So now we successfully insert this data with using that query builder.
Right.
So now we insert some of the data I want to do and to read this data.
OK, that means I want to get all the data and I want the visible visibility in our particular disposition
so we can do that work.
If you want to actually get all the data, you can also get it by two different way.
One will be as you look into one them and there will be as a query builder.
So you'll share both of these one by one so you can read this data and our visibility.
In our next video, I will show you that things with a live example.
So thanks for watching.
I'll see you in the next video.