Laravel Getting started with laravel-5.3 Hello World Example (Basic)


Example

Open routes file. Paste the following code in:

Route::get('helloworld', function () {
    return '<h1>Hello World</h1>';
});

after going to route http://localhost/helloworld it displays Hello World.

The routes file is located /routes/web.php