4 months ago

Trying to get property of non-object

Posted 4 months ago by Van1310

i try to fetch multiple record using foreach

Here is my controller file

public function view($id)
    return view('admin',compact('print'));

Blade file

<td>Payment Confirmed</td>                                                 
@foreach($print as $prints)                                                                                               
<td class="m--font-danger">{{$prints->amount}}</td>         

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