DEV Community

Md Abdullah al noor
Md Abdullah al noor

Posted on

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)