Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I am using Composer version 2.0.8, with Docker. When I use the command composer outdated -f json inside a composer project, the field “latest”, giving the
Tag: php
Laravel | How to use Pivot table with Relationship
I have a question about the relationship. I have an activity model and controller. I guess I searched a lot, I find an attached method for this. But idk how to use it. I have an activity table like this: And another table is activity_asset like this: Now I don’t know how to relate these two tables. What do I
Issue with Storage on shared hosting
I am deploying my first project on a shared hosting. I followed this tutorial to deploy the website and turn the public folder into the public_html folder of my hosting plan. When I upload an image from my website (with storeAs() method), the file is uploaded in the private/storage folder, not the public one (where I would like). The asset()
How to rewrite an echo function to a return value for a WordPress theme
I am new to PHP and I am glad that I have written the following function (which works as it should) on my own so far: But now I definitly need your help… As you can see I want to use this function in a shortcode. Currently it displays first on my page, and Google says, this is because I
I can’t find the code of a Ruby web application
I’m super new to web development, but not new to programming as a whole. I’m extremely confused by this application which I was pulled into fixing because the person who normally does it can’t anymore. This may be a silly question, but I can’t find the code or any HTML that contains the actual web pages. In the main folder,
How to rewrite default php code to a valid echo line output?
I am new to PHP and for the development of a Wordpress theme I need to re-write the following line of php/html code so that I can use it in my functions.php. I found out that I would need to rewrite it as an “echo” call, but I am always getting an error because my syntax is wrong. This is
Redirecting non Safari mobile browser?
I am looking for assistance with coding to detect and redirect a iOS user on any browser other than Safari. I was able to accomplish this via .htaccess, but for iPhone & iPad redirect only, via this: But, I only intend it for non-Safari iOS browsers on iPhone and iPad. Open to other methods than htaccess. Our WebRTC script only
Can I use a PHP “index” page with AWS Amplify?
I am experimenting with using AWS. To be specific, I am following the tutorial at this link: https://aws.amazon.com/getting-started/hands-on/build-web-app-s3-lambda-api-gateway-dynamodb/module-three/?…
.htaccess redirect but exclude some folder
Hello there I am using cpanel. In the cpanel, I created a redirect, which created an .htaccess like this. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{…
how to get specific key and its value from object
How do I get specific key and its value from object? Example I have output of my query: “attribute_summary”:”Color: Red”, “meta_data”:[ { “id”:…