Add all files
This commit is contained in:
21
app/Livewire/Auth/Logout.php
Normal file
21
app/Livewire/Auth/Logout.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Auth;
|
||||
|
||||
use App\Livewire\Component;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class Logout extends Component
|
||||
{
|
||||
public function logout()
|
||||
{
|
||||
Auth::logout();
|
||||
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('auth.logout');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user