Saturday, 21 April 2018

Understanding Laravel Return set

Difference between Laravel Eloquent, DB Raw, Json Encode and Json Decode result set. If you're using a DB:select raw command $currencyRaw = DB::select( DB::raw('select * from currency)); It will give you a type array of objects in which you can display with -> command. The return set will be like this array ( 0 => stdClass::__set_state(array( 'pk_c_code' => 'EUR', ...
Share:

Popular Posts

Recent Posts

Pages

Powered by Blogger.

About Me

My photo
For the past 10 years, I've been playing with codes using PHP, Java, Rails. I do this for a living and love new things to learn and the challenges that comes with it. Besides programming I love spending time with friends and family and can often be found together catching the latest movie or planning a trip to someplace I've never been before.