Upgrade framework
This commit is contained in:
18
vendor/spatie/laravel-ignition/src/Http/Middleware/RunnableSolutionsEnabled.php
vendored
Normal file
18
vendor/spatie/laravel-ignition/src/Http/Middleware/RunnableSolutionsEnabled.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user