Skip to content
Advertisement

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()

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

Advertisement