mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
26 lines
427 B
PHP
26 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\AssociationStatus;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EinundzwanzigPleb extends Model
|
|
{
|
|
|
|
protected $guarded = [];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'association_status' => AssociationStatus::class,
|
|
];
|
|
}
|
|
|
|
public function profile()
|
|
{
|
|
return $this->hasOne(Profile::class, 'pubkey', 'pubkey');
|
|
}
|
|
|
|
}
|