Search code examples
laravelwebmamp

Laravel's blade template


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 figure

Update: route: 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');
});

Solution

  • Fixed: Problem was the route. There is nothing wrong with blade, just I was using wrong route.