I written a laravel echo
code in phpStorm like this :
echo.private('user-channel.5').listen('.NewMessage', (e) => {
alert('salam');
console.log(e);
});
But phpStorm highlights a part of that code as an error.
This is an screenshot of what is happened:
Also when I use Ctrl+Alt+L
to formatting, phpStorm does not format this lines of code properly.
Of course when I run gulp
command to compile file contain Echo
codes, that runs without problem.
Which settings should be change to solve this problem in phpStorm ?
via A.B.Developer