{ PHP snippets }

ModestasV

ModestasV @ModestasMV

TIP: You want to export #laravel eloquent query to native mysql? Here's a quick way to do it: https://t.co/ORGfKtEHNY - Gives out everything you need to run it in mysql console * Warning, doesn't go friendly with relationships and so on. Works on single queries

Jason McCreary

Jason McCreary @gonedark

Came across a quick way to fake a single requirement so Composer can install a dependency instead of using the heavy handed `--ignore-platform-reqs`. https://t.co/LYsHRmTJon

PHP
Stefan Bauer

Stefan Bauer @stefanbauerme

🌟 Here is another great #Tip for Composer: If you don't want to scroll through all the installation conflicts when doing a `composer update`, did you know you can ask composer why a specific package can not be installed? Just use `composer why-not <package> <version>`? https://t.co/RCZs4x34eu

PHP

Did you know you may also pass `null` as a function typed parameter value in #PHP, even though the type is not marked nullable with `?` All parameters with a default value of `null` may receive `null` as a value. https://t.co/mdbqXprZag

PHP
Paul Redmond ??

Paul Redmond ?? @paulredmond

? If you're application is behind a proxy/load balancer, you can force HTTPS at the web server level by checking the X-Forwarded-Proto header https://t.co/oomJNOWNUe

PHP