Overview
Dashboard Laravel defines all application routes inroutes/web.php. The application includes authentication routes, dashboard pages, and various administrative sections.
Route List
| Method | Path | Route Name | Controller/Action | Purpose |
|---|---|---|---|---|
| GET | / | home | AuthController@showLogin | Login page |
| POST | /login | login | AuthController@login | Process login |
| POST | /logout | logout | AuthController@logout | Process logout |
| GET | /signup | signup | AuthController@showRegister | Registration page |
| POST | /signup | register | AuthController@register | Process registration |
| GET | /dashboard | dashboard | Closure | Dashboard home |
| GET | /estadisticas | estadisticas | Closure | Statistics page |
| GET | /analisis | analisis | Closure | Analysis page |
| GET | /ventas | ventas | Closure | Sales page |
| GET | /clientes | clientes | Closure | Customers page |
| GET | /facturas | facturas | Closure | Invoices page |
| GET | /mensajes | mensajes | Closure | Messages page |
| GET | /configuracion | configuracion | Closure | Settings page |
| GET | /nosotros | nosotros | Closure | About page |
Route Definitions
Authentication Routes
- Login
- Registration
- Logout
Dashboard Routes
All dashboard routes use closures to return views directly:All dashboard routes use simple closures that return Blade views. This is efficient for pages that don’t require complex logic or data processing.
Dashboard Pages
Main dashboard page displaying the welcome view
Statistics and metrics page
Data analysis and reporting page
Sales management page
Customer management page
Invoice management page
Messaging and communications page
Application settings and configuration page
About page with company information
Using Named Routes
All routes are named, allowing you to reference them in your Blade templates and controllers:Named routes provide flexibility - you can change the URL without updating references throughout your application.
Route Organization
The routes are organized into two main groups:- Authentication Routes - Handle user login, registration, and logout
- Dashboard Routes - Application pages accessible after authentication
Currently, the route file doesn’t show explicit middleware groups. Consider adding authentication middleware to protect dashboard routes.
