✏️ 编辑:LicenseController.php
路径:
/home/boguraj1/.trash/app/Http/Controllers/Admin/LicenseController.php
大小:696 B · 修改:2026-07-23 16:13:46 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Services\LicenseService; class LicenseController extends Controller { public function __construct(private LicenseService $license) {} public function index() { $status = $this->license->status(); return view('admin.license.index', compact('status')); } public function refresh() { $this->license->clearCache(); $valid = $this->license->isValid(); return back()->with( $valid ? 'success' : 'error', $valid ? 'License verified successfully.' : 'License validation failed. Domain not authorized.' ); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF