<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class LogoutController extends Controller
{
    public function logout() {
        // menghapus sesi pengguna
        Auth::logout();

        return redirect()->route("login")->with("logout", "Berhasil Logout");
    }
}
