Files
nexusphp/app/Http/Controllers/ToolController.php

37 lines
761 B
PHP
Raw Normal View History

2021-05-02 17:24:05 +08:00
<?php
namespace App\Http\Controllers;
use App\Models\PluginStore;
2021-05-02 17:24:05 +08:00
use App\Repositories\ToolRepository;
use Illuminate\Http\Request;
2022-03-31 16:28:08 +08:00
use Illuminate\Support\Facades\Auth;
use Symfony\Component\Process\Process;
use Symfony\Component\HttpFoundation\StreamedResponse;
2024-04-01 02:35:11 +08:00
use Telegram\Bot\Api;
use Telegram\Bot\Commands\HelpCommand;
2021-05-02 17:24:05 +08:00
class ToolController extends Controller
{
private $repository;
public function __construct(ToolRepository $repository)
{
$this->repository = $repository;
}
2022-03-31 16:28:08 +08:00
public function notifications(): array
{
$user = Auth::user();
$result = $this->repository->getNotificationCount($user);
return $this->success($result);
}
2024-04-01 02:35:11 +08:00
2024-03-08 03:35:41 +08:00
public function test(Request $request)
{
2024-04-01 02:35:11 +08:00
2024-03-08 03:35:41 +08:00
}
2021-05-02 17:24:05 +08:00
}