Я создал новый проект laravel, и он отображает @extends, @yield и @section в виде простого текста, у меня установлен php на laragon, и все работает отлично.
Это мой основной файл макета master.blade.php
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>@yield('title')</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ URL::to('src/css/app.css') }}">
@yield('styles')
</head>
<body>
@include('partials.header')
<div class="container">
@yield('content')
</div>
<script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
@yield('scripts')
</body>
</html>
И это index.blade.php, который является основной частью проекта
@extends ('layouts.master')
@section('title')
Laravel Shopping Cart
@endsection
И он просто отображает вот так
Я не понимаю, почему они не работают, также мой api.php
добавил этот код для его работы
Route::get('/', function () {
return view('shop.index');
});