Answer the question
In order to leave comments, you need to log in
Why doesn't blade Laravel work?
Sorry for such a stupid question, but I'm just at a dead end. I used to work with the blade template engine, everything worked fine, now I decided to remember, and some kind of nonsense turns out.
There is this route:
Route::get('/', function () {
return view('main.index');
});
main.index
:<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta charset="utf-8">
</head>
<body>
@include('components.header')
<div class="grid">
<div class="grid__width-1">
@yield('sidebar')
</div>
<div class="grid__width-2">
@yield('content')
</div>
</div>
</body>
</html>
@extends('main.index')
@section('sidebar')
SIDEBAR
@endsection
@extends('main.index')
@section('content')
CONTENT
@endsection
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