You may want to use something like:
if (isset($event['teacher']->name)) {
echo $event['teacher']->name;
}
or
echo isset($event['teacher']->name) ? $event['teacher']->name : '';
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community