dimanche 20 août 2017

Laravel Query Builder convert to array

How to convert the retrieved data items from the database to an array.

 $data = DB::table('Reports')
            ->where('mv_name','=',$Movie_name)
            ->where('date','=',$date)
            ->where('sh','=',$show)->get()->toArray();

If I give the above code. Error is displayed as

Call to a member function toArray() on array



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire