A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Support;
use App\Auth\XenForoUser;
use App\Models\LogXfUser;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Support\CauserResolver;
class XenForoCauserResolver extends CauserResolver
{
public function getDefaultCauser(): ?Model
{
$user = \Auth::user();
if( $user instanceof XenForoUser && $user->getAuthIdentifier() ){
return LogXfUser::find($user->getAuthIdentifier());
}
return null;
}
}