cleanup
This commit is contained in:
parent
0e5eda1470
commit
6c175c9160
3 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
APP_NAME=Laravel
|
||||
APP_NAME=Dashboard
|
||||
APP_ENV=production
|
||||
APP_KEY=
|
||||
APP_DEBUG=false
|
||||
|
@ -11,6 +11,7 @@ DB_DATABASE=controlpanel
|
|||
DB_USERNAME=root
|
||||
DB_PASSWORD=root
|
||||
|
||||
#paypal details, you only need sandbox for testing! you can do this by setting the APP_ENV to local
|
||||
PAYPAL_SANDBOX_SECRET=
|
||||
PAYPAL_SANDBOX_CLIENT_ID=
|
||||
PAYPAL_SECRET=
|
||||
|
|
|
@ -54,7 +54,6 @@ class ChargeCreditsCommand extends Command
|
|||
$user = $server->user;
|
||||
$price = ($server->product->price / 30) / 24;
|
||||
|
||||
|
||||
//remove credits or suspend server
|
||||
if ($user->credits >= $price) {
|
||||
$user->decrement('credits', $price);
|
||||
|
|
|
@ -6,7 +6,7 @@ use App\Classes\Pterodactyl;
|
|||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Tests\TestCase;
|
||||
|
||||
class testUserCommand extends TestCase
|
||||
class TestUserCommand extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
Loading…
Reference in a new issue