I have solved this issue, but thought to share in case someone else will face it:
After downloading this package and running
php artisan generate:model-factory
I got empty factory files and the following exception for each factory file :
SQLSTATE[HY000] [2002] No such file or directory
I am using 'mysql' and I haven't had any problem with DB connection before while working with my Laravel application.
The exception was related to dbal connection, and the solution was to add :
'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
To my mysql driver in Laravel 'config->database.php'
I have solved this issue, but thought to share in case someone else will face it: After downloading this package and running
php artisan generate:model-factory
I got empty factory files and the following exception for each factory file :
SQLSTATE[HY000] [2002] No such file or directory
I am using 'mysql' and I haven't had any problem with DB connection before while working with my Laravel application. The exception was related to dbal connection, and the solution was to add :'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
To my mysql driver in Laravel 'config->database.php'