Initial Commit
This commit is contained in:
21
app/Livewire/Admin/TopUserInfo.php
Normal file
21
app/Livewire/Admin/TopUserInfo.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Admin;
|
||||
|
||||
use Livewire\Component;
|
||||
use App\Models\User;
|
||||
|
||||
class TopUserInfo extends Component
|
||||
{
|
||||
|
||||
protected $listeners = [
|
||||
"updateTopUserInfo" => '$refresh'
|
||||
];
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.admin.top-user-info', [
|
||||
"user" => User::findOrFail(auth()->id())
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user