baseline 7.4 as-is produzione

This commit is contained in:
2026-09-09 14:32:53 +00:00
commit 71ec465d7a
3638 changed files with 859299 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
namespace Vanguard\Http\Middleware;
use Closure;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class VerifyInstallation
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if (! file_exists(base_path('.env')) && ! $request->is('install*')) {
return redirect()->to('install');
}
if (file_exists(base_path('.env')) && $request->is('install*') && ! $request->is('install/complete')) {
throw new NotFoundHttpException;
}
return $next($request);
}
}