π What Are Routes in Laravel?
Routes are the entry points for your web application.
Every HTTP request is mapped to a route, which tells Laravel which code to execute.
Types of Routes:
Web routes β for browser requests
File:routes/web.phpAPI routes β for APIs
File:routes/api.php
π Basic Route Example
Open routes/web.php and add:
Route::get('/', function () {
return "Welcome to Laravel Routing!";
});
getβ HTTP GET request/β URL pathfunction()β callback executed when route is visited
