PHP: How to Exclude a Specific File From Checking in PHPStan? There can be a situation where you have to exclude a class or even an entire file from being checked by PHPStan against defined rules in your project. This guide explains how to ex⦠January 09, 2025
Laravel 11: Serialization of 'PDO' is not allowed Exception You may run into this exception in Laravel as soon as you attempt to queue a Mailable class. Let me quickly explain why this may happen and how to avoid it. November 14, 2024
Proper Cart Total Conversion to Cents Without Odd Results When implementing e-commerce logic (especially a cart functionality or payment integration) it is very common to deal with all sorts of money values as integers. While it is tempti⦠September 25, 2024
Serving Laravel Application Through ngrok The ngrok tool comes very handy when you have to quickly expose your local Laravel environment to the outside world, by obtaining a disposable public URL that points to your local⦠July 17, 2024
Docker: PHPUnit with Laravel In the previous article about setting up a LEMP stack in Docker, I did not mention a word about essential part of crafting software and that is - testing. Let's use this stack and⦠November 01, 2022
PHP: Cookies in Laravel In this brief tutorial I will show you the basics on how to create, return and read cookies created by Laravel. This should cover essential knowledge about cookie functionality tha⦠October 15, 2022
Docker: Create a Complete Dockerized Laravel Environment with PHP, Nginx, MySQL, Redis and Scheduler Docker gives an incredible flexibility in terms of having a fully-fledged local environment, dedicated for development purposes. In this article I will show you how to establish a⦠September 24, 2022
PHP: Spam Prevention Using Honeypot Method When it comes to spam prevention, it is important to find a reasonable balance between efficiency in filtering and overall user experience. Neither a too liberal method of dealing⦠July 03, 2021
PHP: Sending E-mail in Laravel Using SMTP and Amazon SES A shared hosting wins over VPS with its simplicity but is also has pretty serious limitations and doesn't scale up very well. On the other hand managing your own server raises a va⦠May 15, 2020
Laravel View Presenter The idea behind the View-Presenter pattern is to separate model's display logic from the data it represents. In other words neither a model, nor a view should know anything about h⦠August 04, 2018
PHP: How to Extract a ZIP Archive? Extracting a ZIP archive in PHP is a very easy process. All you have to know is the location to a ZIP archive you are about to extract. Follow this brief tutorial to find out how t⦠October 08, 2016
PHP: Optimised File Response in Laravel Using HTTP Cache Headers In most common situations you are going to let your web server handle all HTTP responses for you. Imagine a case where a client is requesting a file by accessing an unique URL β seβ¦ May 28, 2015