Skip to content

Instantly share code, notes, and snippets.

@mpociot
Last active May 25, 2020 14:27
Show Gist options
  • Save mpociot/9f4e90e980366c8147055c7b64792717 to your computer and use it in GitHub Desktop.
Save mpociot/9f4e90e980366c8147055c7b64792717 to your computer and use it in GitHub Desktop.
<h1>Hello {{ $name }}</h1>
<?php
/*
|-------------------------------------------
| Welcome to Tinkerwell Web
|-------------------------------------------
|
| Tinkerwell Web allows you to try out PHP and Laravel all from your browser.
| You have access to all Laravel classes and an in-memory SQLite database.
| Go ahead, and try it out by pressing the run button (CTRL+R).
|
| You can find the Laravel documentation with a lot of ready-to-use
| code snippets by clicking the Laravel icon in the Toolbar.
|
*/
use Illuminate\Http\Request;
Route::get('/', function(Request $request) {
return view('foo', ['name' => $request->get('name', 'World')]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment