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;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community