 Dear students, at times, we have such a situation that we have to redirect the request of the user. Let the user visits a web page. Now that web page has moved from there, instead we have created a new web page. So what we will do is redirect the user. So if we have to redirect the request, then we have multiple options for Laravel. Let's see how we can use them. Let's say that if we open a URI to a user, we want to send it to a new URI. So for that we use route, colon, colon, cat. We have multiple options for that. After using cat, let's say we have a URI for testing purposes. We have redirect slash. The first way we have to redirect is called helper. We redirect the helper kit. And in this we have URI. If we haven't saved this file yet, if we do this, we have application slash redirect slash helper. So we have the option of 404.0.0. Because we haven't handled this page yet. Now what we do is, for this we write URI on the GET function. When there is a GET request on this URI. And then we use a CLOYER function here. And in CLOYER we say return redirect. We use redirect function. And we specify to where we want to redirect. Let's say we want to redirect on the root or home. So we will write here. Now what will happen with this? When we have a user who will open this URI, it will redirect on home. If we write about here, it will redirect on about. So in this way we can specify where we want to redirect the user for this request. So we refresh this page. So now we have a redirection. And we will go to the home page. So this was one way of redirecting. We can short this further. Let's call it a shortcut method. What we will do in the shortcut method is, if we don't need to call the two function, we will simply tell here, which page to redirect. And we can directly use the shortcut. So we don't need to write the two. We just need to redirect on this page. If we click redirect slash shortcut here, then we will go to the home page again. There is another method. In which we use the redirect class. And we use its static function. So here we say redirect. We have a class. And its static function. And then we give it a path. We want to redirect on this path. And let's say we use the packet pattern here. Again, we redirect from that page here. In the home page. And let's see a very short method. If we want to redirect on any URI, it doesn't matter that we have a request on it. What is the method we are using? We have a redirect function. We have a redirect function. We will specify URI in this. And then we will specify on which path we want to redirect. So let's say redirect slash route. If this URI is open, then we will go to the home page. Let's go to the home view. Okay. It says that redirect doesn't exist. So if we look at this. I think we have a spelling mistake. Re direct. So this will be redirect. And we did a spelling mistake. We refresh it. So redirect slash routes are here. At times it happens that we want to pass some parameters through the redirected page. So for that we can use the route function. How will we use that? Route colon colon cat. And in this we will say parameters. When we have URI, then we can go to another page. But along with that we want to pass parameters. Here we will have to use Cloyer. In other words, we will have to use anonymous function. And in that we will write return redirect. We use redirect function. We route it. Now the function of the route gives us some parameters. The first parameter is that we should open the view. Here we will write user.show. And after that we can pass the data pass. Let's say we have a name. And we say that. Because for the user we have not created any view. So for this we create a name. Users. Here we say that the users. After its pattern we specify its name. Its name is users.show. So here we specify its name. And in the function of the route we will use that name. And here we are invoking the index function. We do not write its name directly. Earlier we were using its name. So let's see if we still have it. Okay. Okay, we have over it. So the main thing is that. Here we have a view or a controller. Here we have a route. Inside that we have a variable name. Within that this value will be received. So for the time being. We do not use its value. But if we go there. We can use its value with the dollar sign name. So let's see if it is working. We will go to the user controller. And then we will go there. And if we want we can receive the parameter.