Laravel can’t connect to mysql

It seems your MySQL connection is not configured correctly. Kindly check your MySQL configuration in your .env file. You can find .env file in root directory of Laravel. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=Your_database_name DB_USERNAME=Your_database_username DB_PASSWORD=Your_database_password

Read More

Fixing syntax error or access violation 1071 specified key was too long max key length is 767 bytes

Fixing syntax error or access violation 1071 specified key was too long max key length is 767 bytes [IlluminateDatabaseQueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email)) [PDOException]SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too […]

Read More

How to resolve phpunit/phpunit 5.7.8 requires ext-dom * error while installing Laravel 5.4

Installing php-xml extension on ubuntu based on php version If you are facing “phpunit/phpunit 5.7.8 requires ext-dom *” error at time of installing Laravel then you need to install or upgrade your php xml extension. You can installing php-xml by running below commands on terminal. Make sure you are installing right version of php-xml extension. […]

Read More