Migration complete
This commit is contained in:
15
app/Traits/HasXenforoUserId.php
Normal file
15
app/Traits/HasXenforoUserId.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use App\Auth\XenForoUser;
|
||||
use App\Services\XenforoService;
|
||||
|
||||
trait HasXenforoUserId
|
||||
{
|
||||
public function xenforoUser(): ?XenForoUser
|
||||
{
|
||||
$service = app(XenforoService::class);
|
||||
return $service->getXfUser( $this->user_id );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user