mercredi 5 décembre 2018

Trying to get property of non-object when trying to print

When i am print dd it's showing all data. But when i'm trying to echo it's return error

trying to get property of non-object

Why?

$r = DB::table('requisition_items')->where('material_id', $row->id)->orderBy('id','desc')->first();
                            //dd($r);
                            echo $r->status;



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ef5AeA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire