Farewell, NullLogger. You have served me well, but with PHP's nullsafe operator, I don't need you anymore.

PHP

First time actually using an #PHP8 feature in a live project. Had to replace the role with an AccessLevel Enum. Thanks @spatie_be for the awesome Laravel-Enum Package! :D

PHP

On @phpinsights v2, you will be able to pass a list of files to analyze. Combined with #GithubAction workflows, it's possible to display issues on PR only for new/modified files 🤖

PHP
Tools

🔥 Laravel Tip #11: To minimize the risk of remote code execution (RCE) and cross-site scripting (XSS), it is a good practice to disable the "allow_url_fopen" and "allow_url_include" php configuration settings in your php.ini file. Learn more: https://t.co/HJNP2GcAfi

PHP

🔥 Laravel Tip #13: If you have free RAM wasting away on your web server, one simple yet powerful technique to increase performance is to increase your PHP FPM max child processes.

PHP

🔥 Laravel Tip #23: Consider switching your app to HTTPS only. It's more secure, more credible (with the lock/secure sign) and better for SEO! All you need to do is setup the certificate, change your app URL, redirect HTTP traffic to HTTPS and configure HTTPS only cookies.

Laravel
PHP
Tools

🔥 Laravel Tip #29: If your application is on HTTPS, make sure it supports HTTP/2 for better performance with request/response multiplexing, header compression and faster TLS handshakes. You can check if your app supports HTTP/2 using Curl. Learn more: https://t.co/P0YzVKBZjk

Laravel
PHP
Tools

🔥 Laravel Tip #32: Did you know that the first step of a hack attack is reconnaissance? Make sure that your web server does not expose its version number or operating system. The more info you expose, the easier it is to exploit. Learn more: https://t.co/OgPmE0SEQC

Laravel
PHP
Tools

🔥 Laravel Tip #31: As a good security measure, make sure that you have security headers configured either at the web server level or at the app level. They're incredibly powerful and protect against a wide range of attacks. Learn more: https://t.co/53UvSNnJ36

Laravel
PHP
Tools

🔥 Laravel Tip #28: Make sure your application isn't vulnerable to host injection attacks. Try injecting the "X-Forwarded-Host" and the "Host" header using Curl, and check if the response contains headers or URLs with the injected host. Learn more: https://t.co/WiOLATkERH

Laravel
PHP
Tools

🔥 Laravel Tip #24: For improved performance, remember to exclude dev dependencies and optimize the Composer autoloader in your production deployment scripts. Learn more: https://t.co/dm6gTQSZJA

Laravel
PHP

🔥 Laravel Tip #43: Make sure to scan your PHP dependencies for known vulnerabilities as part of your CI. If you're already using Enlightn in your CI/CD pipeline, this is taken care of. Under the hood, we use our own open source vulnerability scanner.

PHP
Tools

The tweet will be reviewed and posted as soon as possible

{{ newSnippetForm.errors.url[0] }}

{{ newSnippetForm.errors.categories[0] }}