Skip to content

Tag: php

Laravel 7 not finding with scopes

I have a model called Shift on my application, and I’ve defined my relationships and scopes on it like this: Relationship: With scope: Now, when I retrieve shifts and try to call these scopes, I do the following: However, I get this error… I’m not sure why this is happening? It should pick u…

PHP MYSQL Displaying the same data from table to another page

Asset Approval List is a table with lots of row of data and a button, after clicking the button, it will link to Asset Approval Form. I would like to fetch the data from the same row in Asset Approval List to my Asset Approval Form. The data in the table of Asset Approval List is fetched from mysql phpmyadmin…

Add custom settings to WooCommerce Products tab

I’m using WordPress and WooCommerce for my e-commerce. I need to duplicate the “Shop Page” option (under WooCommerce > Settings > Products > General), creating a new option “Outlet Page” after the first, which the user can populate late with the desired page. How can I d…

Laravel 8 update JSON column value

I’m trying to update the value of a json column type for all of my users, my query that I’m running through Tinker doesn’t give any errors, it just returns 0 and the columns remain unchanged, what am I doing wrong? My columns on my rows currently has the value of… Answer After I have r…

How to get array id in ajax append?

i have an appended, there a selectbox with 2 textbox first the selectbox will selecting an item, after on change, it will set all the textbox with data based on selected. my select option calling data from database array $data. this is my ajax code this is my form lets pass about query data, because its worke…