The more secure way to handle this in Blade:
@foreach ($photo->tags->pluck('tag') as $tag)
{{ $tag }} {{ $loop->last ? '' : '<br>' }}
@endforeach
Yes, this is not a single line solution, but it does make your application more secure.
When rendering a variable with {!! $variable !!}
it is not escaped and thus is a potential security risk when the variable contains user supplied data. Any (malicious) html from the user would then be executed. It is better to resolve this the secure way by default. Only use the {!! $variable !!}
syntax when you are sure that the data in the variable is safe to be displayed.