Reputation: 10422
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?
Upvotes: 0
Views: 1199
Reputation: 21
your statement @extends('layouts.main)
is missing single quot " ' "
Upvotes: 0