When we are working with loops, we sometimes need to check first if the variables are iterable. Otherwise, we get the warning message “Warning: Invalid argument supplier for foreach()” in PHP. We get this warning when we use variables are
Laravel 5.7 – How to use Database Transaction with Eloquent ORM and Query Builder
This post demonstrates how to use database transaction both for Eloquent ORM and Laravel’s Query Builder.
Start Up Laravel Application by Running Roadrunner
Are you doubting the potential performance of the PHP application you’ve been building with Laravel Framework? As an interpreted language, PHP is slow. Factor in the apparent out-of-the-box slowness that we could attribute to the framework; your application could be
Laravel 8 PHP Configuration For Local Development Environment
Yesterday, I wrote about how to enable PostgreSQL drive in PHP 7.4. Today, I noticed Laravel 8 is already available. So, I have decided to migrate to Laravel 8 from Laravel 7. This short post shows how to configure some
PHP 7.4 – Enable PostgreSQL Driver
This post shows how to configure PHP 7.4 (or PHP 7.x, in general) php.ini to enable the PostgreSQL driver, which comes in handy when I need to work on a new version of PHP after a very long break (like
Laravel 5.7 Mailgun Configuration To Send Mail
Configuring Laravel to use Mailgun is easy. We only need an account at mailgun.com and, for testing, some authorized recipient email address.
Configure Netbeans to Debug PHP Web Applications
Figuring out how to configure NetBeans, xdebug, PHP, and Apache to enable debugging did not come by easily despite the myriad references available online. However, most (if not all) of them are outdated, and inaccurate. As a result, they tend to obscure a rather simple configuration or how-to.
WordPress Plugin And Composer
This post quickly shows the basic usage of WordPress Plugin and Composer. We are to use a PHP library within our own already existing WordPress Plugin. Composer We can use Composer with a WordPress plugin. The composer is a dependency