<?php
 namespace App\Http\Middleware\Store; use App\Services\Store\BrandContext; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; class NotOnBrandedStorefront { public function handle(Request $request, Closure $next): Response { if (app(BrandContext::class)->isBranded()) { abort(404); } return $next($request); } } 