Blade templating

Blade templates can be found in resources/views (one would also find CSS and JS related files in resources).

The name of the template matches the route e.g. index for index.blade.php:

Custom blade template:
<br/>
<br/>@isset($name)The name passed: 
@endisset

<br/>

The route is defined near the top of web.php, with the parameter name passed on rendering the view:

// access a Blade template
Route::get('/blade', function () {
    // pass the sub-phrase that precedes .blade.php i.e. 
    // index (of index.blade.php), with variables
    return view('index', [
        // note that the HTML elements are escaped and 
        // displayed as literally given, blocking cross-site scripting attacks;
        // HTML elements would have to be defined in the template instead
        'name' => 'JimJom<script></script>',
    ]);
});