Hello, friend, welcome back.
In a previous video I have discussed about that place in Texas and now in this video and we discuss
about one of the most interesting things as a controller.
So before, you know, L.A., I have passed.
That requires that since our return request with our D view, that means that is I loaded onto the view
space.
Right.
So now I want to do want to manage it by the controller.
So how can do that work for doing this?
We have to do we have to create one of the controller.
So if you want to create one of the controller in Laravel, how can I show you then?
You have to do we have to go to your project directly.
So that is our positive victory.
And here right now, I have already done our PS partition service.
I want to create I new one and now if you open it.
So that is our another common problem.
And here you can see that is appropriate for this file location.
Right.
So here I want to do I want to create one of the controller.
So if you want to create one of the controller better, I want to do a little bit big size.
That would be very helpful to you.
OK, so here I want to do it on the controller side, the controller, if you want to create it, then
you have to write down the partition, BHP, Ardizzone and the mic and the controller.
And then I want to do and to create on the controller name as a contact controller for our contact base.
Or one of the things you actually like, I name it as a contact contact controller.
OK, name it as a contact control.
So that is our process that I make it as a capitals contact and controller for Dachsie, the capital.
So if you don't want to use it, you can use it.
But right now that is actually standard way to better practice to create it by the capital letter,
and that is a controller capital letter or government.
So that is the controller I want to create as a contact controller.
So that is BHP artisan make controller and the contact controller noncyclical as they enter.
Now, you can see it's not showing as a controller created successfully when this controller actually
created you get this controller, that means that is your contact controller.
And I have created if you go to your SCDP that in our app into the EDP and there is a controller folder,
if the controller folder here you can see friend.
So that is the contact controller I have created.
So that is by default the class as a controller that that is our controller.
And then it's extended.
Our one of the other controller that was level mother controller when installed at Laravel will get
by the fall of the mother controller, the controller DOT PSP.
So you extended one of the other controller as a this controller occurrence that is our controller.
So we successfully created our controller.
So now I want to do I want to update this part.
Like if you go to our out into the cloud, there is a webroot right into the way about before we pass
from here that is allowed into the cloud that is allowed.
I have created and the functionality I pass that Jiten view of the control that means our contact base.
So that is our contact with right side of the view area.
I have created the contact base, so now I want to download our this based upon this contact base via
our this controller that is a controller I have just created.
So who can do that for doing this before in level seven?
I first of all, I show that level seven functionality.
It is like I remove it.
OK, and first of all, here you had to write it out and then then you have to we have to use that gate
as a tool to fan into the crowd.
There is a gate method.
If you want to get some of the data, you have to use that get right to the gate, then you have to
add your name.
So here I want to want to add one of the name.
So whatever you want.
So right now I want to make it as a game contact.
OK, that means that will be our out name.
That means that there's just some things actually that is already set out.
OK, so right now to create another out as it contact and after that I want to load our controller.
That means that is actually controller.
So here I want to create one of the method.
OK, so right now I want to do I show you everything will be more clear to you like here before we use
that our controller name and after that controller here, we have to we have to add that at the rate
and then your method name, whatever the method you want to create, in particular this controller area.
OK, so right now I'll make it as I want as an index.
OK, index.
So that means this index method we have to do we have to create in our this appropriate our this controller
area of different and also make that sure you add that semicolon.
So that is call up.
So that is the index method we have to now create in our contact.
That means our controller go to our contact controller.
That means here.
OK.
So here we have to create it.
So if you want to create this method, that means that is our index method.
We have to create a copy it.
And if you want to create one of the method, then you have to do we have to write the public, OK,
the public and then function.
So that is a public function and then our method name.
So I have already declared one of the method as index.
Right.
So that is our controller to contact controller.
I have created this method.
That is the index method.
So that is our index method.
So that the index method area that is actually the format for that is very much important on the part,
because if you will understand that mean basic things, Laravel will be just like as a water.
OK, trust me.
So that is the public function and that is our index method and into the index method here right now,
I want to do and equal some of the value.
So here I want to do on the equal as a this is our contact base, the contact base.
So this step up one of the text I want to visible.
So that is the format we used in Laravel six and the seven like right now if you want to access it I.
Just click on the Save All, and that is our contact so that you are told if you want to access it,
I show you the newsroom actually show some of the ator.
I open it, click as they enter.
Now, because your friend is snowshoeing as a target glass contact controller does not exist.
That means this process is not appropriate for the Laravel eight.
So for the Lavallade, if you go to the level official off site, if you go to that as a 14, sorry,
there is a basic into the basket.
If you go to that, comptrollers seem to the controllers right now is a little bit different.
So here you have to do you have to add your controller name fast and also here you have to update it.
That means you can see that.
Exactly.
Actually, you have to use that controller.
And also that will be your new route.
So show you better.
I copied I copied that out now and want to update it right now.
We are using Lavallade, not the seven.
So that is the seven Firmat and now I passed it.
So that is our Lavallade format.
OK, so into the eight format that will be the same as that road and the gate.
And after that I want to do want to add our you all sorry you are will be as a contact that is the same.
And after that, before there are controller names.
So right now I want to do want to use that controller name with this like that format.
They have the top bracket and then you have to add your controller name and then the class.
And after that class here, you have to add that your method.
OK, so that is our index method.
So now to do and use our this index method.
So that is the seven or six format and that is our eight format.
So just that changes a lot of a little updated right now.
So you have to update your out like that.
OK.
So right now we don't need this.
I remove it from here and also we are using that contact controllers.
Right.
So here we have to do we have to also use it.
So you can see it's also give that instruction.
You have to use your controller name so better I use it, I copy it.
And after that, that is our controller in that machine, our app that is that is our app.
And then the EDP and then the controllers folder into the controllers folder.
I have created our folder named FileName.
That is our own name as a contact controller.
Right.
So that is our contact controller.
So now I don't use it.
So that is our contact controller.
I simply use it.
OK, so that is our file extension as the app is.
TDP app is TDP controllers and contact controllers.
That is our contact controllers.
Perfect.
So that's the things you have to do.
Now let's check this out.
If you click and save also and also be redirected to our contact controller index method so that the
contact controller and that is our index method.
So on here I echo our honor based in value.
Add this is our contact base.
Now let's check this out.
If you know, access our this contact the Savol.
And now I want to do want to refresh it.
Yes.
You can see your friend now is perfectly working.
So now is display our contact that this is our contact base I hope is very much clear to friends.
So that is our new updated.
So that is our Alpha Daleville eight.
OK, so into the index methods, into the index material area right now, you call some of these twin
values through here if you want to load some of the return value, just like before that, the return
view of the view base, that is the view file you want to load.
You can also load it.
So here for doing this, you have to do we have to return it the same code as a return and then view
and the view area.
I want to load our contact base.
Right.
So I have already created one of the base.
So the view area.
I have already created the contact base as a contact.
So no one to do want to name it as a contact.
So that's all you have to do.
OK.
And after that, make sure you add that semicolon so perfect.
So now it be redacted to particular that area.
That means when you accessed this contact, it's rejected the contact controller index method.
That means that is our contact controller and that is our index method into the index method which to
be returned view one of the base as a contact base.
That gives you the view and that is our contact base will be loaded.
Right.
I have already created this base, so that is a contact list.
Now, let's check this out.
If you look at the Savol and now if you that is our semirural with freshet.
Yes.
You can see the perfectly loaded our contact base.
I hope friend is very much clear to you.
How can working with this that is how can control your all that you are allowed by this controller and
how can load this controller to make that you added.
OK, so that is actually the example node.
So right now we do need this.
I remove it.
Perfect.
So that is our contact controller.
OK, so every.
Is not perfectly working, so that is our home if we go to that, our home, our home is loaded.
If you go to our controller, that is a contact.
So now this dad actually controlled by the controller.
And also I have added another one of about.
So for about you can it's also loaded.
That aboutus comes from directly that is from where here is now directly.
What about this loaded our distant view signal.
Next video I want to discuss about that Metellus how can create that Middler how can pull some of the
privatization with Domitilla.
You know next video.
I will discuss about that things with you, the live example.
So thanks for watching and I'll see you the next video.