This commit is contained in:
itsAzaria
2026-02-18 19:27:33 +00:00
commit f6f1a8f9d4
28 changed files with 9784 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Laravel\Sanctum\HasApiTokens;
class User extends Model
{
use HasApiTokens;
/**
* The attributes that are mass assignable.
*
* @var array<string>
*/
protected $fillable = [
'username',
'discord_id',
'is_admin',
];
/**
* The attributes that should be cast.
*
* @var array<string>
*/
protected $casts = [
'is_admin' => 'boolean',
];
/**
* The highlighted Discord ID.
*
* @return string
*/
public function getHighlightAttribute()
{
return "<@{$this->discord_id}>";
}
}