How do I use the Null coalescing operator to check for an image name in the database, otherwise return a static image? The following is a line from my Laravel Blade file that I am trying to work with.
<img src="{{ URL::asset('/images/user/'. $profile->photo ?? 'Firefighter-Silhouette.png') }}" class="rounded-circle shadow-2 img-thumbnail" alt="">
Not only does it not return the static image, it somehow removes the final forward slash in the '/images/user/' string.
<img src="https://siriusfireweb.local/images/user" class="rounded-circle shadow-2 img-thumbnail" alt="">
TIA