Illuminate\Database\QueryException SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `users`) code example
Example 1: Illuminate\Database\QueryExceptionSQLSTATE[HY000] [2002] No such file or directory
Add mysql.sock path in database.php file
Example 2: Illuminate\Database\QueryExceptionSQLSTATE[HY000] [2002] No such file or directory
Make sure your config/database.php is the default config for database