PHP Warning: Module 'mysqli' already loaded in Unknown on line 0 Laravel error 1


 

Are you hitting this error in your terminal while running any command for Laravel Project? If yes, then this error occurs in Laravel if extension=mysqli is loaded twice in php.ini file.

 

Solution:

To solve this error open Wamp\Php\php.ini file

Check if extension=mysqli  is mentioned twice in the code.

If you found it twice then comment the second extension=mysqli by adding a semicolon before the second extension=mysqli like this:

;extension=mysqli

 

This will resolve the current error.