appengine/flexible/laravel/routes/web.php (11 lines of code) (raw):
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/log/{token}', function ($token) {
Log::info("Hello my log, token: $token");
return view('welcome');
});
Route::get('/exception/{token}', function ($token) {
throw new Exception("Intentional exception, token: $token");
});