I have two laravel apps like this: I’m trying to serve them on linux machine, I can’t seem to get them to work together. I want to have two urls like this: https://test.example.co https://test.example.co/dashboard Answer I succeeded serving them using another subdomain, the “/dashboard”…
Tag: php
Unlink file – path issue – Codeigniter
Apparently, I am confused how to use site_url() while deleting a file. My site_url responded with http://localhost/Project/index.php For deleting a file, I use unlink command. However, How to use site_url into the unlink command in codeigniter. I am surprised! Below is the path where the uploaded files get st…
How to use PHP glob() with minimum file date (filemtime)?
I want to get a range of files with PHP glob function, but no older than a month (or other specified date range). My current code: $datetime_min = new DateTime(‘today – 4 weeks’); $product_files = …
Is it possible to get actual video link from embedded iframe
I tried to get video from an embedded iFrame, but JS is de-obfuscated, may there is an actual src link hidden in JS, I tried my best and couldn’t de-obfuscate, if I click Play I can find the source, …
My php rooter is routing my css/jpg… files
I got a homemade php rooter with an htaccess rewriting rule but my public files are always getting catched by the rooter after I leave my landing page, blocking thoses sources on my other pages. index….
PrestaShop: How to refresh cart after creating specifc price
I have small problem 😉 I working with PrestaShop 1.7.6.9 (manual instaltion on shared hosting) and 1.7.7.1 (docker image from PrestaShop) I create module where price is calculated via code and saved in DB via SpecificPrice class. Saving work excellent, but I have other problem. When i go to cart product price…
laravel breeze Multi Auth – Admin Guard with two diffirent registration
I’m using laravel breeze as auth scaffolding package.I want to create Multiple Authentication using laravel guards for two different registration form for two User Types (Admin, User). The Main Idea of what I want to achieve : I have two tables in the database one for admins and another for users what I…
yii2: how to set Access-Control-Allow-Origin header
I have this yii2 controller where I want to set Access-Control-Allow-Origin: * header Please Help! Answer I have solved it by updating the behaviors() function
Target Class [AuthLoginController] Not Exist In User Authentication In Tenant Stancl/tenancy
I am using the Stancl/Tenancy package in laravel for multi-tenancy system. I’m able to login from the central app but not from the tenant app in my localhost. I have created a virtual central domain in localhost named sms.com and a subdomain named tenant1.sms.com When I open the central domain the login…
Separate JS Script does not work with jQuery unless I use PHP Include in Head Tag
I am a beginner working on a PHP OOP CRUD Project, where I have to dynamically change the form depending on the selection in the dropdown menu. So I am trying to use jQuery for this. This is what I have in “scripts/script.js”: This is the code for the page with the form and the dropdown list Mine …