Initial commit: Lash Vanshy - Complete project with admin panel, gallery, products, and contact

This commit is contained in:
2026-04-08 00:23:16 -06:00
commit e07e065791
111 changed files with 17939 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Symfony\Component\HttpFoundation\Response;
class AdminAuth
{
/**
* Handle an incoming request.
*
* Verifica que el usuario esté autenticado en el guard 'admin'
*/
public function handle(Request $request, Closure $next): Response
{
if (! Auth::guard('admin')->check()) {
// Si no está autenticado, redirigir al login
return redirect()->route('admin.login')->with('error', 'Debes iniciar sesión para acceder.');
}
return $next($request);
}
}