I am learning laravel on Laracast however I am having some issues
I have this code on file components/layout.blade.php
JavaScript
x
<!DOCTYPE html>
<head>
<title>Host Cloud Template - Services</title>
</head>
<body>
{{$content}}
</body>
And this on main.blade.php
which is the page the view redirects to
JavaScript
<x-layout content = "Hello There">
</x-layout>
For some reason Laravel is returning this error:
JavaScript
syntax error, unexpected 'endif' (T_ENDIF), expecting end of file (View: C:laragonwwwConferenciasresourcesviewstemplatemain.blade.php)
Advertisement
Answer
I found what was causing the problem, I had a space between content
and ="Hello There"
by removing it and leaving it like content="Hello There"
solves the problem.