DEV Community

Md Abdullah al noor
Md Abdullah al noor

Posted on

1

How to pass array data to view

How to pass array data to view

0

Controller

public function Payment()
    {
        $PayData= array('MainCategory'=>$MainCategory , 'Price'=>$Price , 'AddId'=>$AddId );
        return view('classifieds.Pay')->with('store', $PayData);
    }

pay.blade.php

{{$PayhereData->MainCategory}}

this code is not working , how to pass manualy created aray data to view

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay