Added achievement data
This commit is contained in:
1 parent
f6d5b97784
commit
14aed7bf6e
18 files changed
+950
-6
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Services\Achievements\AchievementService;
|
||||
|
||||
/**
|
||||
* @mixin User
|
||||
*/
|
||||
trait HasAchievements
|
||||
{
|
||||
public function calculateAchievements(): void
|
||||
{
|
||||
/** @var User $this */
|
||||
app(AchievementService::class)->calculate($this);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user