<?php
namespace App\Http\Middleware;
use App\Support\ApiResponse; use Closure; use Illuminate\Http\Request;
final class RequireApiMerchantVerified { public function handle(Request $request,Closure $next){$m=$request->attributes->get('merchant');if(!$m||!$m->hasVerifiedEmail())return ApiResponse::error('EMAIL_NOT_VERIFIED','Merchant email must be verified.',403);return $next($request);} }
