Set up a fresh Laravel app

This commit is contained in:
Bob Molitor
2025-10-16 14:22:46 +02:00
commit 81a98dd9f4
112 changed files with 17024 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Livewire\Actions;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class Logout
{
/**
* Log the current user out of the application.
*/
public function __invoke()
{
Auth::guard('web')->logout();
Session::invalidate();
Session::regenerateToken();
return redirect('/');
}
}