Laravel Syntax error, unexpected 'variable' (T

This question already has an answer here:

  • PHP parse/syntax errors; and how to solve them? 13 answers

  • @if(Session::has('cart))

    这里有一个错字。


    You missed a ' in the view

     @if(Session::has('cart))
    

    You need to correct it

    @if(Session::has('cart'))
    

    You left to put a ' at the first line of your View. it must be:

    @if(Session::has('cart'))

    链接地址: http://www.djcxy.com/p/69520.html

    上一篇: 在部署laravel 5.5项目时出现错误

    下一篇: Laravel语法错误,意外的'变量'(T