What is reverse routing in laravel | Laravel 9 name routing example

This tutorial about what is reverse routing in laravel 8, laravel 9.

Reverse routing in laravel

Laravel reverse routing is a process of generating urls by route names or symbols. Reverse routing makes your application more flexible.

How to reverse routing make website more flexiable

In the route file, we define every route's name and use complete website that route names now in the future if we want to change a route URL then easily change it from the routes file. We change only one place and it applies the whole website by route names thus reverse routing makes development fast and flexible.

Route declaration

Route::get('students', [StudentController::class, 'index'])->name('student.list');

now link generate by route name

{{ route('student.list') }}

It will automatically generate route url

php laravel developer anmol sharma

Anmol Sharma

I am a software engineer and have experience in web development technologies like php, Laravel, Codeigniter, javascript, jquery, bootstrap and I like to share my deep knowledge by these blogs.

Random tutorial links