I am new using laravel on blade templates.
So, everything I code the mamp server not showing the results of the code but just the code
@extends('layouts.master')
@section('title', 'Laravel Shopping Cart')
@endsection
@section('content')
<h1>It works!!</h1>
@endsection
route:
<?php
Route::get('/', function () {
return view('shop.index');
});
Fixed: Problem was the route. There is nothing wrong with blade, just I was using wrong route.