ん? syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING)
Laravelで普通にコーディングしてたら
syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING)
ってエラーが出てきてなんやねんと思って調べたら、そもそも 'list' っていうのがPHPの予約語でconstantsやcalss名、function名、method名では使えないらしい。
listっていうアクション名を使っていたのでそれのエラーでした。
予約語一覧
PHP: List of Keywords - Manual
なるほど、知らんかった。