mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-04 06:30:53 +08:00
37 lines
761 B
PHP
37 lines
761 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\PluginStore;
|
|
use App\Repositories\ToolRepository;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Symfony\Component\Process\Process;
|
|
use Symfony\Component\HttpFoundation\StreamedResponse;
|
|
use Telegram\Bot\Api;
|
|
use Telegram\Bot\Commands\HelpCommand;
|
|
|
|
class ToolController extends Controller
|
|
{
|
|
private $repository;
|
|
|
|
public function __construct(ToolRepository $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function notifications(): array
|
|
{
|
|
$user = Auth::user();
|
|
$result = $this->repository->getNotificationCount($user);
|
|
return $this->success($result);
|
|
}
|
|
|
|
|
|
public function test(Request $request)
|
|
{
|
|
|
|
}
|
|
|
|
}
|