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 error #92

Open
ffeel31 opened this issue Nov 29, 2023 · 2 comments
Open

php artisan db:seed error #92

ffeel31 opened this issue Nov 29, 2023 · 2 comments

Comments

@ffeel31
Copy link

ffeel31 commented Nov 29, 2023

when i run the php artisan db:seed command this is what i get

seeding: usersSeeder
Creating users...
Account [buyer] is present
Account [Admin] is present
starting generation of random accounts...
App\Eceptions\RequestException : you must deposit enough funds to the one address

at /var/www/homedirectory/app/Traits/vendorable.php:68
64| // if (!$this -> address() -> where('coin', $coinName) -> exists())
65| // throw new RedirectEception(" you need to have '" . strtoupper ($coinName) . "' address in your account to besome vendor !", route('profile.index'));
66| // }
67| // check if the user deposited address
68| throw_usless($this -> depositedEnough(), new RequestEception("You must deposite enoough funds to the one address!"));
69|
70| try{
71| DB: :beginTransaction();

Exception trace:
1 App\User : :becomeVendor()
/var/www/homedirectory/database/seeds/UsersSeeder.php:69
2 usersSeeder: :run()
/var/wwww/homedirectory/vendor/laravel/framwork/src/Illuminate/container/BoundMethod.php:29

@knulii
Copy link
Contributor

knulii commented Nov 30, 2023

php artisan db:seed just adds dummy data to see what it looks like with products and catagories
You can skip that step or if you want to populate the db with the dummy data change the vendor fee to 0
https://github.com/eckmarcommunity/eckmar/blob/7710c3f769f082fa68770e50db4e79135d6926ae/config/marketplace.php#L34

@Tarun-developer
Copy link
Contributor

its happing because you have enabled coin btc or xmr and stb is not enabled in seeding it get dummy coins to become vendor

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

3 participants