Initial commit

This commit is contained in:
2026-01-25 21:03:33 +01:00
commit 8d8e213f1c
2570 changed files with 479666 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Vanguard\Http\Middleware;
use Closure;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DatabaseSession
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function handle($request, Closure $next)
{
// If we are not using database session driver,
// just display 404 page
if (config('session.driver') != 'database') {
throw new NotFoundHttpException('The entity you are looking for does not exist.');
}
return $next($request);
}
}