eckmar-community / eckmar

Open-source marketplace on Laravel (PHP). Also known as the Eckmar's Marketplace Script.
105 stars 62 forks source link

php artisan db:seed error #92

Open ffeel31 opened 1 year ago

ffeel31 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

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