mirror of
https://github.com/v2board/v2board.git
synced 2024-11-15 00:09:13 +08:00
24 lines
560 B
PHP
24 lines
560 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\ServerGroup;
|
|
use App\Models\Server;
|
|
use App\Models\Plan;
|
|
use App\Models\User;
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
|
class StatController extends Controller
|
|
{
|
|
public function dashboard (Request $request) {
|
|
return response([
|
|
'data' => [
|
|
'month_income' => Redis::get('month_income'),
|
|
'month_register_total' => Redis::get('month_register_total')
|
|
]
|
|
]);
|
|
}
|
|
}
|