Pinned content
View all 3 collectionsPHP admins have deemed these posts noteworthy.
Common Mistakes to Avoid in PHP
Start learning PHP — Useful resources for beginners and advanced
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Drupal config sync but database drifting, how to automate 'database migration'?
Opencart how can i remove query in seo link
after form submission 404 error coming in wordpress
Sending a 9MB JSON file takes 3 seconds
Automatically change user role after completed orders in WooCommerce
Recommended answers
View all recommended answersThese answers have been recommended
The cache, users, jobs and personal_access_tokens tables are not created in Laravel's public folder
As I understood they should be created in the 'public' folder, but it is empty. That is a misunderstanding. You will never find database tables in the public folder. The only exclusion to that rule ...
ArgumentCountError: Too few arguments to function whatever, 0 passed, even with data provider (PHPUnit 12)
Two things good to know: PhpUnit 10 started to support PHP 8 Attributes. PHPUnit 11 deprecated the older @annotations. PHPUnit 12 removed the @annotations. PHP Attributes must not be implemented. ...
How to properly allow multiple origins for a cross-origin (CORS) request?
Make an array containing all your allowed origins (you could even keep this in a database or config file if you need to modify it often, so it's more configurable, and just load it into your PHP array ...
Laravel N+1 when accessing a pivot relationship and the related model (unit)
Laravel will not automatically eager-load relationships defined inside pivot models. Try something like this (Not tested) composer require ajcastro/eager-load-pivot-relation public function ...
Strange behaviour of `ldap_bind` function in PHP when executed against an IPv6 server
memo: this is only to better format a comment in the meantime, as it seems some trouble-shooting is involved and I cannot fully reproduce the issue but it should help the OP in tackling with the ...
See what's trending
View all trending questionsThese are the most active questions in PHP Collective
How can I prevent SQL injection in PHP?
How do I check if a string contains a specific word?
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
How do I get a YouTube video thumbnail from the YouTube API?
Deleting an element from an array in PHP
Quick guide to Laravel package development
Properly removing API from Laravel project
How to trim (or non-breaking space) in PHP?
Evolution of Type Declarations in PHP
Start learning PHP — Useful resources for beginners and advanced
Simply submit a proposal, get it approved, and publish it.
See how the process works