vendredi 24 mars 2017

Laravel Database storing only value not array

$visitorphonenumber=DB::select('select phonenumber from visitortable where email=?',[Auth::user()->email]);

$booking=new bookingmodel();
$booking->visitorphonenumber=$visitorphonenumber;

This stores the value like [{"phonenumber":"9874589608"}] in database but I want to store only the 9874589608



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

Aucun commentaire:

Enregistrer un commentaire