Fix syntax error on laravel4