21 lines
344 B
PHP
21 lines
344 B
PHP
<?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');
|
|
}
|
|
}
|