All Questions
1,464,601 questions
0
votes
0
answers
22
views
Retrieved values from 2 tables at the same time
I'm developing a small module on CakePHP 3 and I'm currently encountering a small problem that I can't seem to solve.
I have two tables: Events and shop_ticket.
Events table:
I store information ...
0
votes
1
answer
37
views
Laravel + Next.js show method
I know it's an unconventional pairing, but I am using Next.js and the Laravel stack for my app.
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\...
4
votes
1
answer
79
views
Problem with cron setting in Laravel 12 that is not working
I have a Laravel 12.39 project (on PHP 8.3) on a shared hosting with cPanel access, and in the cron section, I have the following setting to run artisan schedule:run, but it isn't working. This was an ...
3
votes
1
answer
49
views
How to get the index of the wp-each directive in Interactivity API Wordpress?
I am learning the interactivity API, and when I tried the wp-each directive, I noticed that there is no way to get the index of the array. e.g., if this is my array
$config = [
'fruits' => [
...
0
votes
0
answers
70
views
Bug with @foreach loop in Laravel 12.x + Livewire 3.6
I am using Laravel v12 with Filament v4 and TailwindCSS v4.
I wanted to build a site with tabs, witch are a Livewire component inside filament/Page. In this Livewire components I have 3 tabs, where ...
1
vote
1
answer
100
views
`docker-php-ext-install opcache` works with PHP 8.4 but not PHP 8.5 [closed]
I can build an image with this Dockerfile that is based on a lightweight Docker image that use Alpine:
FROM php:8.4.15-cli-alpine
RUN docker-php-ext-install opcache
But I can’t build an image after ...
Best practices
2
votes
3
replies
55
views
What is the license for reusing php.net code snippets from comments?
The php.net web site is full of comments showing code snippets/functions/small libraries. I was unable to find any mention on php.net regarding what license these snippets fall under, and a web ...
0
votes
0
answers
61
views
How to add routes in laravel 12
Fresh new installation of Laravel 12
composer create-project --prefer-dist laravel/laravel api
cd api
composer update
sudo chmod -R 775 storage
sudo chown -R www-data:www-data storage
sudo chmod -R ...
0
votes
0
answers
28
views
Why does Apple iCloud CalDAV always return 400/405 on PUT (creating events)? Is iCloud CalDAV write-protected?
I’m trying to create events on an iCloud Calendar using CalDAV.
READ operations work:
PROPFIND → OK
REPORT (get events) → OK
Authentication with app-specific password → OK
But every PUT request (...
Tooling
0
votes
3
replies
56
views
laravel real time communication
I’m trying to implement a real-time notification system in my Laravel application. The frontend uses jQuery, and the backend uses Laravel’s broadcasting system with Reverb (also tried with Octane and ...
-1
votes
1
answer
36
views
Problem with module during dolibarr update [closed]
I tried to update dolibarr from 16.0.3 up to the current version 20.0.2. So far it succeeded, but I do have an error code when I want to use a custom module for time-tracking.
To me it seems that ...
2
votes
1
answer
51
views
Symfony/Doctrine: PostgreSQL Migration Issue – Undefined column error only in HTTP Kernel (CLI works)
Symfony/Doctrine: PostgreSQL Migration Issue – Undefined column error only in HTTP Kernel (CLI works)
I'm working on a Symfony 7.3 project running on PHP 8.2. I recently migrated the database from ...
5
votes
1
answer
75
views
CloudKit Web Services Server-to-server Authentication failed using PHP
I've been trying to get the server to server request for quite some time, but unfortunately
I keep getting this error:
2025-11-19T03:19:29Z:"mybody":/database/1/"mycontainer"/...
Best practices
0
votes
11
replies
117
views
How does a recursive function work in PHP?
Edit: How does this recursive call play out, why is i = 1, even though the function fires 3 times ?
Doesn't the function reach the if statement -> fires -> (this repeats 3 times) then reaches ...
Advice
0
votes
3
replies
65
views
Symfony monolog add additional info to all logs
I need to add trackability information for all logs.
E.g. logged in user and route parameters (entity ID)
Right now I have this code:
use Monolog\Processor\ProcessorInterface;
class RequestProcessor ...
4
votes
1
answer
187
views
Javascript interface not downloading IMAP attachments through PHP
I have a webpage in PHP that lets me access an IMAP account. I can fetch the messages fine. But, when I go to download attachments, Firefox opens the download dialog, but immediately after pops an ...
1
vote
0
answers
38
views
Magento 2 SSO Login: “login_redirect” cookie created on first login, forcing repeated login on checkout
I’m integrating a custom SAML-based SSO module with Magento 2.
The SSO login works, but I’m facing an issue specifically during the first login after the user arrives via SSO
After SSO login, when the ...
-1
votes
0
answers
48
views
PHP 8 / MAMP: Restored project gives Internal Server Error and php_mysqli.dll warnings after git pull [closed]
I'm working on a PHP project on MAMP (Windows, PHP 8.3). Everything was working fine until I did a git pull. After restoring some files from an older commit using git checkout, my project now gives a ...
0
votes
0
answers
65
views
Laravel - php artisan migrate [closed]
BadMethodCallException
Method Illuminate\Database\MySqlConnection::getDoctrineConnection does not exist.
at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:115
111▕ ...
-3
votes
0
answers
91
views
API returns nothing [closed]
I made an API together with a form to return recipes based on a specific ingredient, but it doesn’t return anything except array() in the echo.
form.php
<?php
<head>
<meta charset=&...
Advice
0
votes
2
replies
53
views
(WordPress) Execute SQL Query in specific product purchase
i would like to execute a SQL Query after specific product bein purchased, any solution to that ?
Its about a "Tokens" currency that people can use in my software but first You have to ...
3
votes
1
answer
77
views
Laravel Service Container: Am I doing the right thing?
I have an invokable action class called: AttachMembersToRoom . Now, aside from basic form request validations, I also have complex validation, like comparing values across members, identify ...
0
votes
0
answers
56
views
XAMPP on Mint keeps directing my requests to root instead of the directory mentioned in httpd-vhosts.conf [closed]
My virtual host is defined as such:
<VirtualHost *:80>
DocumentRoot "/opt/lampp/htdocs/Taskanator/site"
ServerName taskanator.localhost
</VirtualHost>
Following these ...
Advice
1
vote
7
replies
81
views
Why does PHP on Windows allow a non-existent locale to be set?
If I run var_dump(setlocale(LC_ALL, 'xyz.utf-8'));
on Windows I get string(9) "xyz.utf-8" despite the fact that 'xyz' is not advertised in ResourceBundle::getLocales('') and having ...
-5
votes
2
answers
94
views
Nginx and PHP custom router [closed]
I made this php router, that parses urls in the index.php and calls certain functions. However my when my frontend hits the api, the api block returns the html that the / is supposed to return, its ...