vuedo
vuedo copied to clipboard
php artisan db:seed
[ErrorException] join(): Passing glue string after array is deprecated. Swap the parameters
Same problem
Same problem, any solution?
After doing a bit of research, I found out the error is related to fzaninotto/faker library, which as you may already know it has been archived some time ago. I tried searching all the join() uses and swapping the parameters but I still get the same error on PHP 7.4.
Some people report that doing what I explained above on PHP 7.3 solves the issue. Otherwise you may need to get fake data to seed the Users table from somewhere else and avoid using the Users seed included.
Edit: I forgot I was running this project on Docker, so i'll give it a try on PHP 7.3 and let you know if I could solve it.
Can't seem to get it working, if you don't mind i'd like to be assigned to this issue. I think I might be able to get it to work.
Well, since the problem lies in the faker library and not with the current codebase, I think this issue can't be fixed with a PR. To properly seed the database I inspected Laravel's logs, until I found the following line:
[2021-04-29 00:06:25] local.ERROR: ErrorException: join(): Passing glue string after array is deprecated. Swap the parameters in /home/manu/proyectos/vuedo/vendor/cviebrock/eloquent-sluggable/src/Services/SlugService.php:133
So I went to SlugService.php line 133 and fixed that specific use of the join() function, after that I was able to run php artisan db:seed
Well, since the problem lies in the faker library and not with the current codebase, I think this issue can't be fixed with a PR. To properly seed the database I inspected Laravel's logs, until I found the following line:
[2021-04-29 00:06:25] local.ERROR: ErrorException: join(): Passing glue string after array is deprecated. Swap the parameters in /home/manu/proyectos/vuedo/vendor/cviebrock/eloquent-sluggable/src/Services/SlugService.php:133
So I went to SlugService.php line 133 and fixed that specific use of the join() function, after that I was able to run
php artisan db:seed
You mean this line??? #1 D:\laragon\www\vuedo-master\vendor\cviebrock\eloquent-sluggable\src\Services\SlugService.php(133): join(Array, ' ') how to fix it ?????
just update your package.
composer update