I am making an app and I am getting Laravel to do what I want but I think I am using it in the worst possible way.
I am doing things like this in views
<?php $array = explode(",", $comment->fields); ?>
@foreach ($array as $x)
<span class="post-tag">
{{ $x }}</span>
@endforeach
Should I do this in the controller? Or the Model? and how?