Stuff
This commit is contained in:
parent
cecfd21409
commit
cae7c158e9
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class DashboardController extends BaseController
|
||||||
|
|
||||||
public function dashboardView() {
|
public function dashboardView() {
|
||||||
$currentSize = DB::select("SELECT SUM(size) AS `size` FROM images LEFT JOIN galleries ON images.gallery = galleries.id WHERE galleries.tenant = 1;")[0]->size;
|
$currentSize = DB::select("SELECT SUM(size) AS `size` FROM images LEFT JOIN galleries ON images.gallery = galleries.id WHERE galleries.tenant = 1;")[0]->size;
|
||||||
$currentTraffic = DB::select("SELECT SUM(size) AS size FROM `go-mysql-admin`.access WHERE tenant = 1 AND created_at >= NOW() - INTERVAL 1 DAY;")[0]->size;
|
$currentTraffic = DB::select("SELECT SUM(size) AS size FROM access WHERE tenant = 1 AND created_at >= NOW() - INTERVAL 1 DAY;")[0]->size;
|
||||||
$monthlyTraffic = DB::select("SELECT SUM(traffic) AS `traffic` FROM traffic WHERE `year` = 2021 AND `month` = 1 and tenant = 1;")[0]->traffic;
|
$monthlyTraffic = DB::select("SELECT SUM(traffic) AS `traffic` FROM traffic WHERE `year` = 2021 AND `month` = 1 and tenant = 1;")[0]->traffic;
|
||||||
$lastDaysTreffic = Traffic::getLastDays(7);
|
$lastDaysTreffic = Traffic::getLastDays(7);
|
||||||
$lastDaysSize = Storage::getLastDays(7);
|
$lastDaysSize = Storage::getLastDays(7);
|
||||||
|
|
Loading…
Reference in a new issue