Skip to content

Example project demonstrating how to configure custom route files in Laravel 12 using the new bootstrap/app.php routing system. Learn to add prefixes, middleware, and separate route groups like admin.php without using RouteServiceProvider.

Notifications You must be signed in to change notification settings

itstuffsolutions/laravel-12-routeserviceprovider-configuration-tutorial

Repository files navigation

Laravel 12 RouteServiceProvider Configuration Tutorial

This repository demonstrates how to configure custom route files in Laravel 12 using the new routing structure inside bootstrap/app.php. Laravel 12 removes the need to modify RouteServiceProvider.php, making route configuration simpler and more centralized.

🚀 Introduction

In Laravel 12, route registration is handled through the withRouting() method inside bootstrap/app.php.
This project shows how to:

  • Create custom route files (e.g., admin.php)
  • Register custom route groups
  • Apply middleware and prefixes
  • Understand the new Laravel 12 routing changes

About

Example project demonstrating how to configure custom route files in Laravel 12 using the new bootstrap/app.php routing system. Learn to add prefixes, middleware, and separate route groups like admin.php without using RouteServiceProvider.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages