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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development