@change="runMethod(variable_from_vuex)"
count($new->tags) != ++$i ? "," : "";
<?php $i = 0; ?>
<?php foreach ($new->tags as $tag):?>
<span data-id = "<?= $tag->id ?>"><?= $tag->name ?><?=count($new->tags) != ++$i ? "," : ""?></span>
<?php endforeach; ?>
var course_id = document.getElementsByName("courseid")[0];
var value = course_id.getAttribute("value");
alert(value);
if(!localStorage.getItem("loaded_once")){
localStorage.setItem("loaded_once", true);
alert('Загрузили сайт первый раз!');
}