X

Create New Item

File Folder

X

Search Results

File "RunnableSolutionsEnabled.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-ignition/src/Http/Middleware/RunnableSolutionsEnabled.php
File size: 346 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace Spatie\LaravelIgnition\Http\Middleware;

use Closure;
use Spatie\LaravelIgnition\Support\RunnableSolutionsGuard;

class RunnableSolutionsEnabled
{
    public function handle($request, Closure $next)
    {
        if (! RunnableSolutionsGuard::check()) {
            abort(404);
        }

        return $next($request);
    }
}