Support the ongoing development of Laravel.io →
Blade Laravel
Last updated by @balenjalil-stack 1 year ago.
0
moderator

It means you do something like $mydata->M_Name while $mydata is null.

Depending on your code you need to check if it is null or any other solution.

Example with null check.

if ($mydata !== null ) {
    echo $mydata->M_Name;
}

Or you have the option to stop the call without error if it can be null with ?->.

Example:

echo     echo $mydata?->M_Name;
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.