Answer the question
In order to leave comments, you need to log in
Why doesn't the template render normally?
routes.php
Route::get('/', 'Product\[email protected]');
public function getProducts()
{
return view('product.index');
}
@extends('layouts.main')
@section('content')
AAA
@endsection
<!DOCTYPE html>
<html>
<head>
<title>Test task</title>
</head>
<body>
<div class="content">
@yeild('content')
</div>
</body>
</html>
@yeild('content')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question