In your .env
file, change DB_HOST
from 127.0.0.1
to localhost
More Related Contents:
- Laravel one to many relation with a one to one relation
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- How to do this in Laravel, subquery where in
- Laravel 5 PDOException Could Not Find Driver
- How to join three table by laravel eloquent model
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- How to bind parameters to a raw DB query in Laravel that’s used on a model?
- Setting up Laravel on a Mac php artisan migrate error: No such file or directory [duplicate]
- Laravel 5.4 field doesn’t have a default value
- Laravel Migration table already exists, but I want to add new not the older
- “No such file or directory” or “No such host is known” when running migrations
- Laravel $q->where() between dates
- belongsToMany relationship in Laravel across multiple databases
- How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?
- Laravel 5.4 on PHP 7.0: PDO Exception – Could not find driver (MySQL)
- Laravel nested relationships
- getting the value of an extra pivot table column laravel
- Laravel Cannot delete or update a parent row: a foreign key constraint fails
- php artisan migrate throwing [PDO Exception] Could not find driver – Using Laravel
- Change name of Laravel’s created_at and updated_at
- Base table or view not found: 1146 Table Laravel 5
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
- How do I get database column names in Laravel?
- Eloquent many-to-many-to-many – how to load distant relation easily
- Create a Insert… Select statement in Laravel
- PHP Laravel: No connection could be made because the target machine actively refused it
- How to create a database-driven multi-level navigation menu using Laravel
- Eloquent groupBy make “SQLSTATE[42000]” with valid SQL query in Laravel 5.3
- Check if laravel model got saved or query got executed
- find in set in laravel ? example