I've got a master template at resources/views/layouts/main.blade.php
. It looks like this:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
@yield('test')
</body>
</html>
I'm stubbing out the login page at resources/views/auth/login.blade.php
:
@extends('layouts.main)
@section('test')
test
@endsection
That's about as simple as it can get-- but I'm seeing the usual meaningless Laravel error messages:
FatalErrorException in 180d7ceab6e7cde074091b437eb5346a line 6:
syntax error, unexpected '__data' (T_STRING)
What am I missing?
您错过了此行中的引号: @extends('layouts.main)
您的声明@extends('layouts.main)
缺少单个“”
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.