Laravel Syntax error, unexpected 'variable' (T
This question already has an answer here:
@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'))