Parse error: syntax error, unexpected '__data' (T_STRING), expecting ',' or ')&#

Posted 一轮明月随潮涌

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Parse error: syntax error, unexpected '__data' (T_STRING), expecting ',' or ')&#相关的知识,希望对你有一定的参考价值。

使用laravel时,建立view文件引入dafault文件时报错:

Parse error: syntax error, unexpected ‘__data‘ (T_STRING), expecting ‘,‘ or ‘)‘;

这种错误的关键是:
expecting ‘,‘ or ‘)‘;

意思就是缺少: “,” 或者 “)”

检查发现是少了一个分号,记录一下。
@extends(‘layouts.default)

以上是关于Parse error: syntax error, unexpected '__data' (T_STRING), expecting ',' or ')&#的主要内容,如果未能解决你的问题,请参考以下文章