Basic Routing 1
Basic Routing 1
Introduction
• The most basic Laravel routes accept a URI and a
closure, providing a very simple and expressive method of
defining routes and behavior without complicated routing
configuration files:
use Illuminate\Support\Facades\Route;
Route::get('/greeting', function () {
return 'Hello World';
});
The Default Route Files
• All Laravel routes are defined in your route files, which are
located in the routes directory.