Named Routes in Laravel 9 | Routing - Laravel 9 | Programming Mentor | Urdu/Hindi

Опубликовано: 04 Июль 2026
на канале: Programming Mentor (Pakistan)
155
6

In this video, we're going to learn about Named Routes in Laravel 9. We'll learn how to create, use, and delete routes, and also how to use route guards to protect our routes.

If you're a Laravel 9 user and you're looking to learn more about routing in Laravel, then this video is for you! We'll cover everything you need to know about Named Routes in Laravel 9, from how to create routes to how to use route guards to protect your routes. By the end of this video, you'll have a solid understanding of how routing works in Laravel 9!

In Laravel, named routes allow you to give a specific route a name, which can be used to refer to that route throughout your application. This can make it easier to update your routes, as you only need to change the name in one place rather than hunting down all of the references to the route in your code.

Named Routes in Laravel 9 | Routing - Laravel 9 | Programming Mentor | Urdu/Hindi

In Laravel 9, you can define a named route by passing a name as the second argument to the Route:: method. For example:

It's worth noting that in Laravel 9, the way of naming route by as method is depreciated, you should use name method instead.