Files
lotteryLaravel/app/Http/Middleware/EnsureAdminApi.php

21 lines
456 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* 后台 API 守卫:后续在此注入 Sanctumadmin_users与权限校验。
*
* 当前为占位直通,勿在生产暴露敏感 admin 路由前长期保持空实现。
*/
class EnsureAdminApi
{
public function handle(Request $request, Closure $next): Response
{
return $next($request);
}
}