How to fetch data as association array like pg_fetch_assoc in laravel controller?

When I’m using pg_fetch_assoc then my output like below [{“0″:”T”,”id”:”I”,”1″:”T-ABC”}, {“0″:”T”,”id”:”I”,”1″:”T-XYZ”}, {“0″:”T”,”id”:”I”,”1″:”T-QWR”}] But right now I’m using Laravel framework and in my controller am using below code $type=$request->type; $query= typeModel::get()->where(‘id’,$type); return response()->json($query); The above code is give me below format {“11”:{“id”:”I”,”type”:”T-ABC”}, “12”:{“id”:”I”,”type”:”T-XYZ”}, “13”:{“id”:”I”,”type”:”T-OWR”}} But I need format like pg_fetch_assoc How can i achieve this in…

Details

Getting the checked value of a checkbox in Angular 2+

Is there a way to get the checkbox’s checked value in a .ts file? Here’s the html of the checkbox: <label class=”checkbox-container”> <span class=”remember-me-text”>Billing Address same as Return Address</span> <input type=”checkbox” id=”billingCheck” name=”checkbox” checked> <span class=”checkmark”></span> </label> Basically, I want a different the display of a div on the same component, let’s say id=’x’, to…

Details

Why its mysqld error occurs during Mariabackup

The error message is shown below. Using server version 10.4.8-MariaDB-log mariabackup based on MariaDB server 10.4.11-MariaDB Linux (x86_64) [00] 2020-01-11 11:05:41 uses posix_fadvise(). [00] 2020-01-11 11:05:41 cd to /home/data/mysql/ [00] 2020-01-11 11:05:41 open files limit requested 0, set to 1024 [00] 2020-01-11 11:05:41 mariabackup: using the following InnoDB configuration: [00] 2020-01-11 11:05:41 innodb_data_home_dir = [00]…

Details