first commit

This commit is contained in:
Kevin Adametz 2025-04-01 10:49:26 +02:00
commit 56aa7836f4
140 changed files with 24604 additions and 0 deletions

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('/');
}
}