<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class EnsureSiteNotLive
{
    public function handle(Request $request, Closure $next)
    {
        abort_if(tenant()->live_at, 403, 'This feature is not available for live sites.');

        return $next($request);
    }
}
