I am trying to run a stored procedure on my laravel project but instead of returning the result, it returns 1
Here is the query
$telco_id = Auth::user()->telco_id;
$result = DB::statement('CALL soldToVendor(?)', [$telco_id]);
return $result;
I am not sure if I am calling the stored procedure though but the above syntax was what I got from searches done online.
PLease why is it not returning the desired result?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l5WLaX
via IFTTT
Aucun commentaire:
Enregistrer un commentaire