I used the following code to display the role of the user however, when I want to edit or delete it leads me to the deleted ids number 2/3 it return the same thing even when I change the for else with foreach Attempt to read property “id” on null (View: C:laravelgautoresourcesviewsdashboarduseredi…
Setting Parameters in CI4s redirecting function
is there any possible way to send parameters within the redirection function from Codeigniter 4? Important, it is a named route: And i want to do a redirect like this: this works fine: this would be nice, if it works: or Why? I have HMVC and I would like to name every module with the same routes but different…
How to display pagination links in a blade on Laravel 8?
I need to add pagination, but it seems complicated in my case, because I get data from database with paginate, but then I modify this data and when I call links() method on the blade, I get the following exception Method IlluminateSupportCollection::links does not exist. My code in the Controller method: Yes,…
Show Estimated Delivery for Products in select Taxonomy in WooCommerce
I am currently using the snippet below to show estimated delivery on my single product pages. I need help making a few changes to the code; I currently have a custom taxonomy (Available now) and would like to modify the code to show for only products with that taxonomy Change the output notice to show eg. (Re…
How to call a class from vendor folder when using a composer?
I am investigating jwt token examples from this link – https://github.com/firebase/php-jwt So i run: And now i have new files and folders in my root directory of my site: vendor, composer.json and composer.lock. Folder “vendor” contents “firebase/php-jwt” folder. So i tried to ru…
How to initialize a PHP websocket service in CPanel/External web host?
I have developed a web app which shows information in real time from certain actions carried out by different users. For this I use websockets, built in PHP, in a local environment (WAMP) and works fine, but I need this to also work on an external server (web hosting service), which I only have access to thro…
i want to increment my result on every using dompdf laravel
Hey friends, if some 1 know how can i increment every in this . **i want to get : 7313 – 7314 – 7315 7316 -7317 ….** ( am using dompdf laravel) ( i already triend to use just 1 in and i use (display:inline;) for but that doesn’t work with dompdf so i am trying this solution Answer if
How to change order/location of HTML form elements in registration page of woocommerce
I added custom/extra user details in registration form of woocommerce (image attached ). Fields shown in red box are custom fields. My code for add custom fields. Now i am trying to change the order of all form elements in registration form. But issue is I can only change the order of customize elements add b…
Update specific row in MYSQL [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…
zsh: command not found: php
I have been using php with mamp on mac for a year even with old versions of MacOS, since I installed MacOS Monterrey if I type php on the terminal I get a message:zsh: command not found: php Using older versions of MacOS I have never had this problem. How can I solve the problem? Answer I had the same