How to Check Laravel Version through CLI / command prompt and file

There are 2 easy ways to find out what version of laravel you are using. They are by running php artisian commands on CLI or checking the files. Method 1: Check Laravel Version using CLI / Command Prompt The tells us that the Laravel Framework version we are currently using is 7.11.0 Alternative to the …

How to Check Laravel Version through CLI / command prompt and file Read More »

PHP 7.4 – Null Coalesce Assignment Operator

The Null Coalesce Assignment Operator (??=) assigns the value of the right-hand parameter if the left-hand parameter is null. It is also called as Null Coalesce Equal Operator.

Generating bcrypt .htpasswd passwords using PHP

In my previous post we saw how to generate .htpasswd file using crypt and apr1-md5 algorithm in PHP. However, now there is a more secure BCRYPT algorithm that can be used since apache 2.4 for passwords in .htpasswd. In this post we will generate .htpasswd file using the BCRYPT algorithm in PHP.

How to remove render blocking JavaScript with defer and async

With HTML5 there are 2 new boolean attributes for <script> tag which indicates to the browser how the script should be evaluated. The 2 attributes are defer and async. Using these attributes can help improve the page load time by downloading the script in parallel when the page is being parsed and then executing it …

How to remove render blocking JavaScript with defer and async Read More »

What does int(11) means in MySQL?

A very common misconception about what int(11) means in MySQL is that the column can store maximum integer value with 11 digits in length. However, this is not true. int(11) does not determines the maximum value that the column can store in it. 11 is the display width of the integer column, unlike the characters …

What does int(11) means in MySQL? Read More »