Skip to content

How to Use WhereIn Query in Laravel 8

Controller public function detail(Peserta $peserta) { // get konfirmasi_id $konfirmasi = KonfirmasiPembayaran::where(’email’,$peserta->email)->select(‘id’)->get(); …

Invalid JSON Response due to custom wordpress shortcode

I’ve encountered a problem with a custom shortcode i created, which just outputs a table via PHP-Echo. This shortcode just serves as a search form and posts the data to another site. Everytime i insert the shortcode in a wp-site and update it, i get “Invalid JSON-Response”. I’ve tried …

Encountering “404 NOT FOUND” for Laravel update/edit

in edit_customer: web.php //Customer related pages Profile.php (controller) Answer You are using route group prefix “customer”, so your url in the form should be prefixed url(‘customer/update_customer’, [ ‘cust’ => $cust->id ] https://laravel.com/docs/8.x/routing#route-group-pref…

PHP swapping elements between 2 tables

Question: Sort the 2 tables in such a way that table 1 contains only words that have at least 1 time the letter “u” and the second table the rest of the words that do not. Hello, i’m a bit lost on displaying my code. I got the idea, which is adding elements that contains the letter ‘u&…

Nothing happening after get JSON request

I am calling an API to return some data. I can see in dev tools the response is 200 successful, and in the network tab can see the returned data. The problem I have is with displaying the data in my …