laravel-websockets/src/Dashboard/Http/Controllers/ShowStatistics.php

23 lines
610 B
PHP
Raw Normal View History

2018-12-03 21:59:50 +00:00
<?php
namespace BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers;
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
use Illuminate\Http\Request;
2020-08-23 17:41:17 +00:00
class ShowStatistics
2018-12-03 21:59:50 +00:00
{
2020-08-18 17:21:22 +00:00
/**
* Get statistics for an app ID.
*
* @param \Illuminate\Http\Request $request
* @param \BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver $driver
2020-08-18 17:21:22 +00:00
* @param mixed $appId
* @return \Illuminate\Http\Response
*/
2020-08-23 17:41:17 +00:00
public function __invoke(Request $request, StatisticsDriver $driver, $appId)
2018-12-03 21:59:50 +00:00
{
return $driver::get($appId, $request);
2018-12-03 21:59:50 +00:00
}
2018-12-04 21:22:33 +00:00
}