Initial commit
This commit is contained in:
20
app/Http/Livewire/Notification.php
Normal file
20
app/Http/Livewire/Notification.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class Notification extends Component
|
||||
{
|
||||
public function dehydrate()
|
||||
{
|
||||
// Clear the session key after the component is rendered
|
||||
session()->forget('notification');
|
||||
}
|
||||
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.notification');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user