PHP 8.3.30
Preview: CustomAuth.php Size: 370 B
/home/getspomw/itechservicellc.com/app/Http/Middleware/CustomAuth.php

<?php
namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class CustomAuth
{
    public function handle($request, Closure $next)
    {
        if (!Auth::check()) {
            // Redirect to your desired route if not authenticated
            return redirect()->route('admin.login');
        }

        return $next($request);
    }
}
?>

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
509 B lrw-r--r-- 2025-10-28 20:21:36
Edit Download
370 B lrw-r--r-- 2025-10-28 20:21:36
Edit Download
631 B lrw-r--r-- 2025-10-28 20:21:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).