why propery_exist error on blade page

Posted 1 year ago by jahstation
  @php
            if(($template) && (property_exist($template,'content'))){
                if( $template->content->description)
                    $testo=$template->content->description;
                else
                 $testo='-';

                if($template->content->title)
                    $titolo=$template->content->title;
                else
                    $titolo= '-';

                if($template->content->questions){
                    $domande=$template->content->questions;
                    $numDomande=count($template->content->questions);
                }else
                    $domande='';

            }else{
                $testo='-';
                $titolo= '-';
                $domande='';

            }
            @endphp

why this code on blade page, give me back this error?

https://ibb.co/bZ77xx

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.