Laravel - Routing - Basic Routing

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';
});