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



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2x2JLbm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire