Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Vendor.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function roundAvgRate($type)
*/
public function getProfileBg(){
if ($this->profilebg == null){
$this->profilebg = array_random(config('vendor.profile_bgs'));
$this->profilebg = \Illuminate\Support\Arr::random(config('vendor.profile_bgs'));
$this->save();
}

Expand Down
2 changes: 1 addition & 1 deletion app/VendorPurchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function unloadFunds()

$marketCoinAddresses = config('coins.market_addresses.' . $this->coin);
// pick one from the array
$marketCoinAddress = $marketCoinAddresses[array_rand($marketCoinAddresses)];
$marketCoinAddress = \Illuminate\Support\Arr::random($marketCoinAddresses);

// send to market address
$coinService->sendToAddress($marketCoinAddress, $this->getBalance());
Expand Down
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"barryvdh/laravel-ide-helper": "^2.4",
"defuse/php-encryption": "^2.2",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.0",
"fzaninotto/faker": "^1.8",
"graham-campbell/markdown": "^10.3",
"graham-campbell/markdown": "^12.0",
"gregwar/captcha": "^1.1",
"laravel/framework": "5.7.*",
"laravel/framework": "^6.0",
"laravel/helpers": "^1.2",
"laravel/tinker": "^1.0",
"nwidart/laravel-modules": "^5.0",
"nwidart/laravel-modules": "^7.0",
"paragonie/sodium_compat": "^1.7",
"phpseclib/phpseclib": "~2.0.4",
"phpxmlrpc/phpxmlrpc": "^4.3",
Expand All @@ -31,8 +31,8 @@
"require-dev": {
"filp/whoops": "^2.0",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^8.0"
},
"autoload": {
"classmap": [
Expand Down Expand Up @@ -76,7 +76,10 @@
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
Loading