Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan db:seed #54

Open
temesgenmhr opened this issue Mar 29, 2021 · 7 comments
Open

php artisan db:seed #54

temesgenmhr opened this issue Mar 29, 2021 · 7 comments

Comments

@temesgenmhr
Copy link

[ErrorException]
join(): Passing glue string after array is deprecated. Swap the parameters

@subhojit-ghosh
Copy link

Same problem

@jesseinvent
Copy link

Same problem, any solution?

@MFernandez93
Copy link

MFernandez93 commented Apr 28, 2021

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.

@MFernandez93
Copy link

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.

@MFernandez93
Copy link

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

@harounsk
Copy link

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 ?????

@hasmukh-dharajiya
Copy link

hasmukh-dharajiya commented Jun 5, 2022

just update your package.

composer update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants