niyo
2 months ago
1120
34
Laravel

Property [name] does not exist on this collection instance.

Posted 2 months ago by niyo

i just can't find why my data in the graphics table doesn't show up

public function index () { // if(!empty($graphics)) { // $graphics = Graphic::get('amount'); // return view('guavahire.graphics.thankyou', ['graphics' => $graphics]); // }

   if (Auth::check()) {

        $graphics = Graphic::all();
        return view('guavahire.graphics.payment', ['graphics' => $graphics]);
    }
    else {
        return view('auth.login');
    }
}

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