|
@@ -3,6 +3,7 @@
|
|
|
namespace App\Models;
|
|
|
|
|
|
use App\Classes\Pterodactyl;
|
|
|
+use Carbon\Carbon;
|
|
|
use Exception;
|
|
|
use GuzzleHttp\Promise\PromiseInterface;
|
|
|
use Hidehalo\Nanoid\Client;
|
|
@@ -126,9 +127,11 @@ class Server extends Model
|
|
|
if ($response->successful()) {
|
|
|
$this->update([
|
|
|
'suspended' => null,
|
|
|
+ 'last_billed' => Carbon::now()->toDateTimeString(),
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|