In this tutorial, you will learn how to log SQL queries in Laravel application. You will create a custom QueryLogger class and bind it to the service container.
The Complete Guide To Increasing Your PHP Max Upload Size
Follow this step-by-step guide to increase the max upload size in PHP. A complete analysis of the 3 requirements to increase the max upload size in PHP-FPM and Nginx.
How To Find All Available Methods To Laravel Facades
Finding the true implementation of a Laravel facade is easy. In this post, we dive into the Laravel Internals to uncover the true implementation of the Mail facade.
How Does The Explode Function In PHP Work?
Split a string with the explode function in PHP. Why is it called explode anyway?
PHP Deployment Best Practices When Using Composer
Composer is the de-facto dependency manager for PHP applications which was initially released almost 8 years ago March 2012. Using Composer in your PHP can be used to increase one’s code reusability and enable your project to easily integrate maintained PHP libraries from the Packagist, the main PHP Composer repository. Today we’ll highlight a few […]
How to enable SSL connections to MySQL in WordPress without plugins
At Amezmo, we’ve recently rolled out remote database access over SSL. In this post, we will extend WordPress’s default MySQL connection options to support SSL connections to the server. How does WordPress connect to MySQL? The file wp-includes/wp-db.php contains a class called wpdb. This class setups the MySQL connection with the mysqli PHP extension. Since […]
How to Change the Default Storage Path in Laravel
Changing the default storage path in Laravel can be accomplished using a service provider. In this post, we will share how to change the default storage path.
Persistent Logging For Laravel PHP Apps
Amezmo is a platform as a service dedicated to PHP app hosting. Start your free trial today and get your app deployed fast. By default, Amezmo will create a dedicated directory for your application’s logging purposes. We recommend using this dedicated directory so you can persist your logs across deployments. The full path is /webroot/logs […]
How to Host and Deploy a Laravel PHP app
In this tutorial, we will deploy a Laravel application with a Redis backed queue, a MySQL database, and Nginx web server running PHP 7.4. We’ll also setup continuous deployments from GitHub and automated database backups Requirements Laravel repository hosted on GitHub Amezmo account Step 1. Creating the PHP server instance We’ll launch a 512MB/1 Core […]
How To Format Currency with PHP on Ubuntu 16.04
Introduction Formatting currency is an important practice that will help you implement locale-aware visual representions of your pricing text. Using a standard library is an effcient and extensibile way to format your prices to your users. Using a standard library to format your curreny is helpful in situations where your business expands into a market […]