Laravel_api/app/Http/Controllers/Api/HomeController.php

26 lines
554 B
PHP
Raw Normal View History

2022-09-25 21:39:39 +08:00
<?php
namespace App\Http\Controllers\Api;
use App\Http\Requests\Api\UserRequest;
use App\Http\Resources\Api\UserResource;
use App\Jobs\Api\SaveLastTokenJob;
use App\Models\Book;
use App\Models\Url;
use App\Models\Log;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Tymon\JWTAuth\Exceptions\TokenExpiredException;
class HomeController extends Controller
{
public function index()
{
$urls = Url::all();
$log = Log::all();
return $this->success(["urls"=>count($urls),"log"=>count($log)]);
}
}