Tuesday, February 20, 2018

Laravel: Can I get DB request as indexed array - development

Laravel: Can I get DB request as indexed array

I’ve met a problem wit Laravel DB query.
I have to use something like:

$priceList = DB::select("exec dataBase.dbo.PRICELIST ?", [$id]);

But I can’t directly access server.
As it tries to return associative array it fails to return anything.
Does enyone know how to return indexed array from this in Laravel?

EDIT:

I’m receiving data from stored procedure not table

Thanks for any help! 🙂



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-can-i-get-db-request-as-indexed-array/
via Lzo Media

No comments:

Post a Comment