Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use App\Models\Compositions\HasBadge;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property int $level
*/
class Achievement extends Model implements HasBadge
{
#[\Override]
public $timestamps = false;
#[\Override]
protected $guarded = ['id', 'name', 'level'];
public function getBadgePath(): string
{
return sprintf('%sACH_%s.gif', setting('badges_path'), $this->getBadgeName());
}
public function getBadgeName(): string
{
return sprintf('%s%s', $this->name, (string) $this->level);
}
}