Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Spatie\LaravelIgnition\Http\Middleware;
4
 
5
use Closure;
6
use Spatie\LaravelIgnition\Support\RunnableSolutionsGuard;
7
 
8
class RunnableSolutionsEnabled
9
{
10
    public function handle($request, Closure $next)
11
    {
12
        if (! RunnableSolutionsGuard::check()) {
13
            abort(404);
14
        }
15
 
16
        return $next($request);
17
    }
18
}