<?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');
});
How come this code from web.php that is given to me as a part of the framework does not have the ?>
enclosure at the end as all .php
files should? Sorry but I am new to php and Laravel and just trying to write some example routes from a textbook.