Level 60
PHP is working,
This is what doesn't work
$url->content;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, any idea why the $url-variable in between of @php is not working?
Exception: Trying to get property 'content' of non-object
@foreach($position->url as $url)
@php
$content = $url->content;
@endphp
@endforeach
Please or to participate in this conversation.